Should prevent desync hopefully. Thanks unc0rr
authornemo
Sun, 30 Nov 2014 14:41:40 -0500
changeset 10585 eaccc445c473
parent 10584 f44ec13e3082
child 10586 dbb77726f0c6
Should prevent desync hopefully. Thanks unc0rr
share/hedgewars/Data/Maps/ClimbHome/map.lua
--- a/share/hedgewars/Data/Maps/ClimbHome/map.lua	Sun Nov 30 17:20:37 2014 +0100
+++ b/share/hedgewars/Data/Maps/ClimbHome/map.lua	Sun Nov 30 14:41:40 2014 -0500
@@ -110,16 +110,12 @@
     tauntNoo = false
     recordBroken = false
     if CurrentHedgehog ~= nil then
-	if CurrentHedgehog ~= dummyHog then
-            SetGearPosition(CurrentHedgehog, 1951,32640)
-	    if not HogsAreInvulnerable then SetEffect(CurrentHedgehog,heInvulnerable,0) end
-            AddVisualGear(19531,32640,vgtExplosion,0,false)
-            SetState(CurrentHedgehog,band(GetState(CurrentHedgehog),bnot(gstInvisible)))
-            SetWeapon(amRope)
-            ready = true
-        else
-            ParseCommand("/skip")
-	end
+        SetGearPosition(CurrentHedgehog, 1951,32640)
+        if not HogsAreInvulnerable then SetEffect(CurrentHedgehog,heInvulnerable,0) end
+        AddVisualGear(19531,32640,vgtExplosion,0,false)
+        SetState(CurrentHedgehog,band(GetState(CurrentHedgehog),bnot(gstInvisible)))
+        SetWeapon(amRope)
+        ready = true
     end
     for f,i in pairs(Fire) do
         DeleteGear(f)
@@ -174,6 +170,9 @@
 function onGameTick20()
     local x,y;
     if math.random(20) == 1 then AddVisualGear(2012,56,vgtSmoke,0,false) end
+    if CurrentHedgehog == dummyHog then
+        ParseCommand("/skip")
+    end
 
     --if BoomFire ~= nil then
     --    for f,i in pairs(BoomFire) do