share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
branchspacecampaign
changeset 9326 689f591aa226
parent 9310 1469147c110f
child 9328 811574013fed
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Thu Jul 11 02:05:59 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Thu Jul 11 04:00:11 2013 +0300
@@ -292,8 +292,11 @@
 function moonLanding(gear)
 	WriteLnToConsole("MOON LANDING, HOORAY!")
 	AnimCaption(hero.gear,loc("Welcome to the moon!"))
-	SaveCampaignVar("CosmosCheckPoint", "4")
-	SaveCampaignVar("UnlockedMissions", "2")	
+	if checkPointReached ~= 5 then
+		SaveCampaignVar("CosmosCheckPoint", "4")
+		SaveCampaignVar("HeroHealth",GetHealth(hero.gear))
+	end
+	SaveCampaignVar("UnlockedMissions", "2")
 	SaveCampaignVar("Mission1", "2")
 	SaveCampaignVar("Mission2", "1")
 	EndGame()