# HG changeset patch # User nemo # Date 1383162869 14400 # Node ID e9c00dd31b07f4b5a7c62178397b1d14c70c32ab # Parent c97e8ecc7457118e963d0290e96421aacd7ca3fe drop onGameTick20 - it has some savings on cpu, but racers demand millisecond precision not 20 millisecond, apparently diff -r c97e8ecc7457 -r e9c00dd31b07 share/hedgewars/Data/Maps/TrophyRace/map.lua --- a/share/hedgewars/Data/Maps/TrophyRace/map.lua Wed Oct 30 15:25:17 2013 -0400 +++ b/share/hedgewars/Data/Maps/TrophyRace/map.lua Wed Oct 30 15:54:29 2013 -0400 @@ -72,17 +72,17 @@ SetAmmo(amRope, 9, 2, 0) end -function onGameTick20() +function onGameTick() if startTime == 0 and TurnTimeLeft < maxtime then startTime = GameTime end - if CurrentHedgehog ~= nil and TurnTimeLeft <= 20 and TurnTimeLeft > 0 then + if CurrentHedgehog ~= nil and TurnTimeLeft == 0 then SetHealth(CurrentHedgehog, 0) x, y = GetGearPosition(CurrentHedgehog) AddGear(x, y, gtShell, 0, 0, 0, 0) worsttime = 99999 worsthog = nil - elseif TurnTimeLeft > maxtime - 25 and CurrentHedgehog ~= nil then + elseif TurnTimeLeft == maxtime-1 and CurrentHedgehog ~= nil then if lasthog ~= nil then SetGearPosition(lasthog, p , 0) end