# HG changeset patch
# User Wuzzy <almikes@aol.com>
# Date 1506395373 -7200
# Node ID baee67bfa5c21669b2a08aa7c39a9f2fedb712ea
# Parent  34a91e2b927eca98e0490c3e5c2da61c207d2e27
ASA, the final battle: Fix mission panel not appearing if you watched the dialog

diff -r 34a91e2b927e -r baee67bfa5c2 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)