# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1558896702 -7200
# Node ID 0c902b30de399ca80f03b9b7298eadd86941da37
# Parent  3fe414620cc6bd45fcbbbf40308f668682e0507a
ACF6: More turn time tweaks

diff -r 3fe414620cc6 -r 0c902b30de39 share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua	Sun May 26 20:45:08 2019 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua	Sun May 26 20:51:42 2019 +0200
@@ -385,7 +385,11 @@
 function AfterKillAnim()
   if not cyborgsKilledBeforeCrates then
     PutWeaponCrates()
-    SetTurnTimeLeft(timeAfterCratesTaken)
+    if timeAfterCratesTaken then
+      SetTurnTimeLeft(timeAfterCratesTaken)
+    else
+      SetTurnTimeLeft(TurnTime)
+    end
     SetReadyTimeLeft(Ready)
     AddEvent(CheckCyborgsDead, {}, DoCyborgsDead, {}, 0)
     ShowMission(loc("Dragon's Lair"), loc("The Slaughter"), loc("Kill the aliens!").."|"..loc("Mines time: 5 seconds"), 1, 2000)