share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua
changeset 12624 705dde538519
parent 12606 f1e0fa009eb7
child 12794 bca911f8e804
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua	Sat Sep 30 23:53:21 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua	Sun Oct 01 00:46:58 2017 +0200
@@ -587,7 +587,7 @@
     loc("Press [Left] and [Right] to change the difficulty.") .. "| |" ..
     dstr .. "| |" ..
     loc("Press [Attack] to begin."),
-    0, 300000)
+    0, 9999000)
 end
 
 function SetChoice()
@@ -689,6 +689,18 @@
   CheckEvents()
 end
 
+local choiceDialogTimer = 0
+function onGameTick20()
+  -- Make sure the choice dialog never disappears while it is active
+  if difficultyChoice then
+    choiceDialogTimer = choiceDialogTimer + 20
+    if choiceDialogTimer > 9990000 then
+      ChoiceDialog()
+      choiceDialogTimer = 0
+    end
+  end
+end
+
 function onGearDelete(gear)
   if gear == ropeCrate1 then
     rope1Taken = true