hedgewars/uGears.pas
changeset 7135 4d863aadd0b2
parent 7068 b1b7eb9c8cc9
child 7154 56e329edf4b8
equal deleted inserted replaced
7133:9f250f79cb79 7135:4d863aadd0b2
   453     if (not CurrentTeam^.ExtDriven) or CurrentTeam^.hasGone then
   453     if (not CurrentTeam^.ExtDriven) or CurrentTeam^.hasGone then
   454         inc(hiTicks) // we do not recieve a message for this
   454         inc(hiTicks) // we do not recieve a message for this
   455     end;
   455     end;
   456 
   456 
   457 ScriptCall('onGameTick');
   457 ScriptCall('onGameTick');
       
   458 if GameTicks mod 20 = 0 then ScriptCall('onGameTick20');
   458 inc(GameTicks)
   459 inc(GameTicks)
   459 end;
   460 end;
   460 
   461 
   461 //Purpose, to reset all transient attributes toggled by a utility and clean up various gears and effects at end of turn
   462 //Purpose, to reset all transient attributes toggled by a utility and clean up various gears and effects at end of turn
   462 //If any of these are set as permanent toggles in the frontend, that needs to be checked and skipped here.
   463 //If any of these are set as permanent toggles in the frontend, that needs to be checked and skipped here.