share/hedgewars/Data/Scripts/Multiplayer/Gravity.lua
changeset 10738 62659c427e5d
parent 10509 d62d3c706947
child 10758 0f3a0f117810
--- a/share/hedgewars/Data/Scripts/Multiplayer/Gravity.lua	Thu Jan 01 12:43:00 2015 -0500
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Gravity.lua	Fri Jan 02 01:13:22 2015 +0300
@@ -17,7 +17,12 @@
 
 
 function grav_onNewTurn()
-    SetGravity(gravity)
+    if delta ~= nil and period == nil then 
+      SetGravity(gravity)
+    else
+      SetGravity(div(gravity, mln))
+    end
+    
     wdGameTicks = GameTime
     
     if script2_onNewTurn ~= nil then