share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua
changeset 12535 baee67bfa5c2
parent 12534 34a91e2b927e
child 12538 952afc3d2df2
--- 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)