share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/family.lua
changeset 13745 2bb7141496a9
parent 13692 a8b2a5e7e9db
child 13755 110d6c1e817f
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/family.lua	Sun Sep 02 20:57:33 2018 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/family.lua	Sun Sep 02 21:26:44 2018 +0200
@@ -295,7 +295,7 @@
   AddNewEvent(CheckOutOfCluster, {}, DoOutOfCluster, {}, 1)
   AddNewEvent(CheckOutOfGrenade, {}, DoOutOfGrenade, {}, 1)
 --  AddNewEvent(CheckNeedToHide, {}, DoNeedToHide, {}, 1)
-  TurnTimeLeft = TurnTime
+  SetTurnTimeLeft(TurnTime)
   ShowMission(loc("Family Reunion"), loc("Hostage Situation"), loc("Save the princess! All your hogs must survive!|Hint: Kill the cyborgs first! Use the ammo very carefully!|Hint: You might want to spare a girder for cover!"), 1, 7000)
 end
 
@@ -636,7 +636,7 @@
 
 function onNewTurn()
   if AnimInProgress() then
-    TurnTimeLeft = -1
+    SetTurnTimeLeft(cMaxTurnTime)
     return
   end
   if CurrentHedgehog == cyborg then