Don't set gravity to normal immediately on turn end, let watchdog do its job if game gets frozen
authorunc0rr
Wed, 01 Jan 2014 13:22:46 +0400
changeset 9898 b87695f82d2e
parent 9896 64fcebc58fbc
child 9900 34ba1d8e0e9a
Don't set gravity to normal immediately on turn end, let watchdog do its job if game gets frozen
share/hedgewars/Data/Scripts/Multiplayer/Gravity.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Gravity.lua	Wed Jan 01 00:18:10 2014 -0500
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Gravity.lua	Wed Jan 01 13:22:46 2014 +0400
@@ -10,7 +10,7 @@
 end
 
 function onGameTick20()
-    if (TurnTimeLeft < 20) or (TurnTimeLeft > 0 and wdGameTicks + 15000 < GameTime) then
+    if wdGameTicks + 15000 < GameTime then
         SetGravity(100)
     elseif wdTTL ~= TurnTimeLeft then
         wdGameTicks = GameTime