share/hedgewars/Data/Scripts/Multiplayer/WxW.lua
changeset 15158 651c1737be2a
parent 15089 6f51c75994a4
child 15220 b0ed2b17c0cf
--- a/share/hedgewars/Data/Scripts/Multiplayer/WxW.lua	Fri Jun 14 17:05:00 2019 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/WxW.lua	Fri Jun 14 17:21:05 2019 +0200
@@ -977,7 +977,7 @@
 	AddCaption(loc("Please place your hedgehog first!"), msgColorWarn, capgrpMessage2)
 end
 
-function onLJump()
+function AcceptConfiguration()
 	if roundN == 1 then
 		PlaySound(sndPlaced)
 		SetInputMask(0xFFFFFFFF)
@@ -1001,6 +1001,12 @@
 		end
 		PlaySound(sndYesSir, CurrentHedgehog)
 		FinalizeMenu()
+	end
+end
+
+function onLJump()
+	if roundN == 1 then
+		AcceptConfiguration()
 	elseif roundN == 2 then
 		PlaceWarn()
 	elseif roundN == 100 then
@@ -1363,6 +1369,9 @@
 		UpdateMenu()
 		AddCaption(string.format(loc("%s may choose the rules."), GetHogTeamName(CurrentHedgehog)), msgColorTech, capgrpGameState)
 		HandleStartingStage()
+		if GetHogLevel(CurrentHedgehog) ~= 0 then
+			AcceptConfiguration()
+		end
 	end
 
 end