move this call to where the game tick is actually incremented
authornemo
Wed, 24 Nov 2010 15:40:28 -0500
changeset 4417 6bf00d99fc47
parent 4416 29d2d1548387
child 4418 c4ce66435305
move this call to where the game tick is actually incremented
hedgewars/uGame.pas
hedgewars/uGears.pas
--- a/hedgewars/uGame.pas	Mon Nov 22 22:05:46 2010 +0100
+++ b/hedgewars/uGame.pas	Wed Nov 24 15:40:28 2010 -0500
@@ -45,7 +45,6 @@
 i:= 1;
 while (GameState <> gsExit) and (i <= Lag) do
     begin
-    ScriptCall('onGameTick');
     if not CurrentTeam^.ExtDriven then
        begin
        if CurrentHedgehog^.BotLevel <> 0 then ProcessBot;
--- a/hedgewars/uGears.pas	Mon Nov 22 22:05:46 2010 +0100
+++ b/hedgewars/uGears.pas	Wed Nov 24 15:40:28 2010 -0500
@@ -856,6 +856,7 @@
         inc(hiTicks) // we do not recieve a message for this
     end;
 
+ScriptCall('onGameTick');
 inc(GameTicks)
 end;