From fb32cb1b780c1169a834c951bc0c928199a2b59e Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Wed, 22 Dec 2021 16:46:49 +0000 Subject: playtest fixes --- Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut index b2ce4fca9..4b90b1a29 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut @@ -127,7 +127,7 @@ void function WaitForPlayers( ) // note: atm if someone disconnects as this happens the game will just wait forever float endTime = Time() + 30.0 - while ( GetPendingClientsCount() != 0 && endTime > Time() ) + while ( ( GetPendingClientsCount() != 0 && endTime > Time() ) || GetPlayerArray().len() == 0 ) WaitFrame() print( "done waiting!" ) -- cgit v1.2.3