ASA, the final battle: Fix mission panel not appearing if you watched the dialog
authorWuzzy <almikes@aol.com>
Tue, 26 Sep 2017 05:09:33 +0200
changeset 12535 baee67bfa5c2
parent 12534 34a91e2b927e
child 12536 e54039ea3934
ASA, the final battle: Fix mission panel not appearing if you watched the dialog
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua	Tue Sep 26 04:56:19 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua	Tue Sep 26 05:09:33 2017 +0200
@@ -288,10 +288,7 @@
 -------------- ANIMATIONS ------------------
 
 function Skipanim(anim)
-	if goals[anim] ~= nil then
-		ShowMission(unpack(goals[anim]))
-    end
-    startBattle()
+	startBattle()
 end
 
 function AnimationSetup()
@@ -323,6 +320,7 @@
 -------------- OTHER FUNCTIONS -----------------
 
 function startBattle()
+	ShowMission(unpack(goals[dialog01]))
 	DeleteGear(professor.human)
 	RestoreHog(professor.bot)
 	AnimSwitchHog(professor.gear)