share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
branchspacecampaign
changeset 9621 0e633b929825
parent 9620 55c82fd210cb
child 9629 1655c50d9c51
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua	Fri Sep 13 02:22:57 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua	Fri Sep 13 02:43:55 2013 +0300
@@ -376,12 +376,16 @@
 end
 
 function heroAtCheckpoint2(gear)
-	saveCheckPointLocal("2")
+	if GetAmmoCount(hero.gear, amRope) > 0 or GetAmmoCount(hero.gear, amParachute) > 0 then
+		saveCheckPointLocal("2")
+	end
 	secondBattle()
 end
 
 function heroAtCheckpoint3(gear)
-	saveCheckPointLocal("3")
+	if GetAmmoCount(hero.gear, amRope) > 0 then
+		saveCheckPointLocal("3")
+	end
 	secondBattle()
 end