share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua
changeset 12560 d51ea6ac1ca1
parent 12553 933aee9786c3
child 12630 52ed732cf494
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua	Wed Sep 27 06:38:51 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua	Wed Sep 27 15:45:42 2017 +0200
@@ -447,7 +447,7 @@
   end
   RestoreHedge(cyborg)
   DeleteGear(cyborg)
-  TurnTimeLeft = 0
+  EndTurn(true)
 end
 
 function CheckGearsDead(gearList)
@@ -467,7 +467,7 @@
 function EndMission()
   RestoreHedge(cyborg)
   DeleteGear(cyborg)
-  TurnTimeLeft = 0
+  EndTurn(true)
 end
 
 function CheckFreshDead()
@@ -684,7 +684,7 @@
     end
     TurnTimeLeft = 30000
   elseif GetHogTeamName(CurrentHedgehog) == loc("011101001") then
-    TurnTimeLeft = 0
+    EndTurn(true)
   else
     SetInputMask(0xFFFFFFFF)
   end