# HG changeset patch # User Periklis Ntanasis # Date 1386115726 -7200 # Node ID abe0c8a2d57307e5bb537aa92284774146c5d77c # Parent 64abf9862562fc5daeb13a6307ba86ed74d10f06 adjusting the wind in fruit02 diff -r 64abf9862562 -r abe0c8a2d573 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()