hedgewars/uGears.pas
changeset 7149 08a30dd92900
parent 7135 4d863aadd0b2
child 7154 56e329edf4b8
equal deleted inserted replaced
7123:9fe1c4091dd1 7149:08a30dd92900
   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.