some fixes to the map and the events spacecampaign
authorPeriklis Ntanasis <pntanasis@gmail.com>
Sat, 10 Aug 2013 04:16:26 +0300
branchspacecampaign
changeset 9506 adc05ca2cb10
parent 9504 cdba61cfba93
child 9508 c23bff98e3d2
some fixes to the map and the events
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.hwp
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua
Binary file share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.hwp has changed
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Sat Aug 10 03:56:50 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Sat Aug 10 04:16:26 2013 +0300
@@ -252,7 +252,7 @@
 end
 
 function onEscapeWin(gear)
-	if not hero.dead and GetX(hero.gear) < 170 and GetY(hero.gear > 1980) and StoppedGear(hero.gear) then
+	if not hero.dead and GetX(hero.gear) < 170 and GetY(hero.gear) > 1980 and StoppedGear(hero.gear) then
 		return true
 	end
 	return false
@@ -294,6 +294,7 @@
 		AddEvent(onBattleWin, {hero.gear}, battleWin, {hero.gear}, 0)
 		AddAnim(dialog02)
 	elseif GetX(hero.gear) > hero.x then
+		HogTurnLeft(hero.gear, true)
 		AddEvent(onEscapeWin, {hero.gear}, escapeWin, {hero.gear}, 0)
 		local greenTeam = { green2, green3, green4 }
 		for i=1,3 do