share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua
changeset 12369 5857936921ec
parent 12269 41542ed28fe4
child 12370 92b4bab79c26
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua	Thu Apr 27 22:47:14 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua	Thu Apr 27 23:47:44 2017 +0200
@@ -81,7 +81,7 @@
   crate = SpawnHealthCrate(0, 0)
   SetGearMessage(CurrentHedgehog, 0)
   AddNewEvent(CheckCrateTaken, {}, DoCrateTaken, {}, 1)
-  TurnTimeLeft = 0
+  EndTurn(true)
   ShowMission(loc("Epilogue"), loc("That's all, folks!"),
     loc("You have successfully finished the campaign!").."|"..
     loc("If you wish to replay, there are other possible endings, too!").."|"..
@@ -427,7 +427,7 @@
     return
   end
   if CurrentHedgehog == traitor then
-    TurnTimeLeft = 0
+    EndTurn(true)
   else
     TurnTimeLeft = -1
   end