share/hedgewars/Data/Scripts/Multiplayer/WxW.lua
changeset 12624 705dde538519
parent 12287 faf1b93422ba
child 12933 e65aa3c3d4e6
--- a/share/hedgewars/Data/Scripts/Multiplayer/WxW.lua	Sat Sep 30 23:53:21 2017 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/WxW.lua	Sun Oct 01 00:46:58 2017 +0200
@@ -1550,7 +1550,7 @@
 				preMenuCfg..
 				missionComment ..
 				postMenuCfg ..
-				"", 2, 300000
+				"", 2, 9999000
 				)
 
 	menu[menuIndex].line = temp
@@ -1620,6 +1620,18 @@
 
 end
 
+local menuRepeatTimer = 0
+function onGameTick20()
+  -- Make sure the menu doesn't disappear while it is active
+  if roundN == 1 then
+    menuRepeatTimer = menuRepeatTimer + 20
+    if menuRepeatTimer > 9990000 then
+      HandleStartingStage()
+      menuRepeatTimer = 0
+    end
+  end
+end
+
 function onGearAdd(gear)
 
 	if GetGearType(gear) == gtRope then