share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
branchspacecampaign
changeset 9578 16139270448f
parent 9574 da3d39667881
child 9582 bf314b2258b3
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua	Mon Aug 26 02:08:11 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua	Mon Aug 26 06:13:36 2013 +0300
@@ -13,6 +13,7 @@
 
 HedgewarsScriptLoad("/Scripts/Locale.lua")
 HedgewarsScriptLoad("/Scripts/Animate.lua")
+HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua")
 
 ----------------- VARIABLES --------------------
 -- globals
@@ -496,6 +497,7 @@
 		cratesFound = cratesFound + 1
 	elseif cratesFound == 1 then
 		-- end game
+		saveCompletedStatus(5)
 		AnimSay(hero.gear, loc("Hoo Ray!!!"), SAY_SHOUT, 5000)
 		SendStat('siGameResult', loc("Congratulations, you won!")) --1
 		SendStat('siCustomAchievement', loc("To win the game you had to collect the 2 crates with no specific order")) --11