ASA cosmos: Minor cinematic tweaks for meteorite cut scene
authorWuzzy <Wuzzy2@mail.ru>
Wed, 16 Jan 2019 06:24:50 +0100
changeset 14609 ce315bb8b59d
parent 14608 f29effb11190
child 14610 153c12b9051b
ASA cosmos: Minor cinematic tweaks for meteorite cut scene
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Wed Jan 16 06:10:30 2019 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Wed Jan 16 06:24:50 2019 +0100
@@ -154,7 +154,7 @@
 		startSequence = true
 		AnimSetGearPosition(hero.gear, 1110, 850)
 	elseif checkPointReached == 5 then
-		startSequence = false
+		startSequence = status.death01 and not status.final
 		-- Hero has visited a planet, he has plenty of fuels and can change planet
 		if GetCampaignVar("Planet") == "moon" then
 			AnimSetGearPosition(hero.gear, 1110, 850)
@@ -191,6 +191,8 @@
 		else
 			ShowMission(unpack(goals["open_side_missions"]))
 		end
+	elseif status.death01 and not status.final then
+		HideMission()
 	else
 		ShowMission(unpack(goals["init"]))
 	end