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/lobby/_private_lobby.gnut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Northstar.CustomServers/mod/scripts/vscripts/lobby') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut b/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut index 7011de08..3acd1652 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut @@ -91,7 +91,7 @@ bool function ClientCommandCallback_SetCustomMap( entity player, array a bool function ClientCommandCallback_PrivateMatchSwitchTeams( entity player, array args ) { - if ( file.startState == ePrivateMatchStartState.STARTING ) + if ( file.startState == ePrivateMatchStartState.STARTING || GetGamemodeVarOrUseValue( file.mode, "max_teams", "2" ).tointeger() != 2 ) return true // currently only support 2 teams in private matches -- cgit v1.2.3