share/hedgewars/Data/Scripts/Multiplayer/WxW.lua
changeset 13742 2bb7141496a9
parent 13687 a8b2a5e7e9db
child 13752 110d6c1e817f
--- a/share/hedgewars/Data/Scripts/Multiplayer/WxW.lua	Sun Sep 02 20:57:33 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/WxW.lua	Sun Sep 02 21:26:44 2018 +0200
@@ -962,7 +962,7 @@
 		SetInputMask(0xFFFFFFFF)
 		AddCaption(loc("Configuration accepted."), msgColorTech, capgrpMessage)
 		if GetGameFlag(gfPlaceHog) then
-			TurnTimeLeft = PlacementTime
+			SetTurnTimeLeft(PlacementTime)
 			AddAmmo(CurrentHedgehog, amTeleport, 100)
 			SetWeapon(amTeleport)
 			AddCaption(
@@ -972,7 +972,7 @@
 			)
 			roundN = 2
 		else
-			TurnTimeLeft = TurnTime
+			SetTurnTimeLeft(TurnTime)
 			AddCaption(string.format(loc("Let's go, %s!"), GetHogTeamName(CurrentHedgehog)), capcolDefault, capgrpMessage2)
 			roundN = 100
 			wallsLeft = #wTouched
@@ -1280,7 +1280,7 @@
 		if roundN < 2 then
 			SetWeapon(amSkip)
 			AddAmmo(CurrentHedgehog, amTeleport, 0)
-			TurnTimeLeft = -1
+			SetTurnTimeLeft(cMaxTurnTime)
 			SetInputMask(0)
 		end
 		if roundN == 2 then
@@ -1337,7 +1337,7 @@
 	end
 
 	if roundN == 1 then
-		TurnTimeLeft = -1
+		SetTurnTimeLeft(cMaxTurnTime)
 		SetInputMask(0)
 		allowCrate = false
 		UpdateMenu()