--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/united.lua Sun Sep 02 20:57:33 2018 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/united.lua Sun Sep 02 21:26:44 2018 +0200
@@ -66,13 +66,13 @@
--------------------------Anim skip functions--------------------------
function AfterHogDeadAnim()
freshDead = nil
- TurnTimeLeft = TurnTime
+ SetTurnTimeLeft(TurnTime)
end
function AfterStartAnim()
local goal = loc("Defeat the cannibals!|")
local chiefgoal = loc("Try to protect the chief! You won't lose if he dies, but it is advised that he survives.")
- TurnTimeLeft = TurnTime
+ SetTurnTimeLeft(TurnTime)
ShowMission(loc("United We Stand"), loc("Invasion"), goal .. chiefgoal, 1, 6000)
end
@@ -532,7 +532,7 @@
function onNewTurn()
if AnimInProgress() then
- TurnTimeLeft = -1
+ SetTurnTimeLeft(cMaxTurnTime)
return
end
if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == loc("Natives") then