adjusting the wind in fruit02
authorPeriklis Ntanasis <pntanasis@gmail.com>
Wed, 04 Dec 2013 02:08:46 +0200
changeset 9747 abe0c8a2d573
parent 9746 64abf9862562
child 9748 b0286b0c91ce
adjusting the wind in fruit02
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Wed Dec 04 00:46:04 2013 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Wed Dec 04 02:08:46 2013 +0200
@@ -273,6 +273,9 @@
 		heroDeath()
 		permitCaptainLimeDeath = true
 	end
+	if CurrentHedgehog and GetY(CurrentHedgehog) > 1350 then
+		SetWind(-40)
+	end
 end
 
 function onGearDelete(gear)
@@ -542,11 +545,7 @@
 end
 
 function wind()
-	if GetY(CurrentHedgehog) > 1350 then
-		SetWind(-40)
-	else
-		SetWind(math.random(-100,100))
-	end
+	SetWind(math.random(-100,100))
 end
 
 function saveHogsPositions()