share/hedgewars/Data/Maps/ClimbHome/map.lua
changeset 10811 0d9c49e88142
parent 10810 931dd8f42763
child 10812 38dc8445d7a7
--- a/share/hedgewars/Data/Maps/ClimbHome/map.lua	Sat Jan 31 22:13:44 2015 -0500
+++ b/share/hedgewars/Data/Maps/ClimbHome/map.lua	Sat Jan 31 22:18:40 2015 -0500
@@ -47,11 +47,19 @@
 function onParameters()
     parseParams()
 
-    baseWaterSpeed = params["speed"]
-    waterAccel = params["accel"]
-    if waterAccel ~= 0 then waterAccel = div(32640000,waterAccel) end
-    delayTime = params["delaytime"]
-    delayHeight = 32768-params["delayheight"]
+    if params["speed"] ~= nil then
+        baseWaterSpeed = params["speed"]
+    end
+    if params["wateraccel"] ~= nil then
+        waterAccel = params["accel"]
+        if waterAccel ~= 0 then waterAccel = div(32640000,waterAccel) end
+    end
+    if params["delaytime"] ~= nil then
+        delayTime = params["delaytime"]
+    end
+    if params["delaytime"] ~= nil then
+        delayHeight = 32768-params["delayheight"]
+    end
     if params["nocake"] ~= nil then addCake = false end
 end