Code:
void TimeManager (sint64 TIME, sint64 INCREMENT, int mtg)
{
if (mtg)
{
if (mtg > 25)
mtg = 25;
DESIRED_TIME = TIME / mtg + INCREMENT;
ABSOLUTE_TIME =
(TIME * mtg) / (4 * mtg - 3) - MIN (1000000, TIME / 10);
if (mtg == 1)
ABSOLUTE_TIME -= MIN (1000000, ABSOLUTE_TIME / 10);
if (ABSOLUTE_TIME < 1000) /* porque? */
ABSOLUTE_TIME = 1000;
}
else
{
ABSOLUTE_TIME = TIME / 4 - 10000;
if (ABSOLUTE_TIME < 1000)
ABSOLUTE_TIME = 1000;
DESIRED_TIME = ABSOLUTE_TIME / 11 + INCREMENT;
}
if (DESIRED_TIME > ABSOLUTE_TIME)
DESIRED_TIME = ABSOLUTE_TIME;
if (DESIRED_TIME < 1000)
DESIRED_TIME = 1000;
EASY_TIME = DESIRED_TIME / 4;
BATTLE_TIME = DESIRED_TIME;
ORDINARY_TIME = (3 * DESIRED_TIME) / 4;
}
THlS ls about Toga ot a renamed IvanHoe ?
We allways test 2 +1 and STlLL see a HUGE amount of time losses as engine ponders as if on infanity setting
has Fire Bird the same code ?
_________________
nothing is ever truly lost , just misplaced and awaiting us