diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-28 18:05:54 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-28 18:05:54 +0000 |
commit | 7652539f68a35bd78e27e4394cf66a269212febb (patch) | |
tree | 9c928230345a266d24339478ef073cd4cccdc3cb /Northstar.CustomServers/mod/scripts/vscripts/lobby | |
parent | f61ecb463a481d5547ddb34e794c901c099f2d83 (diff) | |
download | NorthstarMods-7652539f68a35bd78e27e4394cf66a269212febb.tar.gz NorthstarMods-7652539f68a35bd78e27e4394cf66a269212febb.zip |
fix ns_private_match_only_host_can_start
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/lobby')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut b/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut index 08cc9d0b..388f4794 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut @@ -37,6 +37,10 @@ void function SetupPrivateMatchUIVarsWhenReady() bool function ClientCommandCallback_PrivateMatchLaunch( entity player, array<string> args ) { + if ( GetConVarBool( "ns_private_match_only_host_can_start" ) ) + if ( !NSIsPlayerIndexLocalPlayer( player.GetPlayerIndex() ) ) + return true + if ( file.startState == ePrivateMatchStartState.STARTING ) { // cancel start if we're already mid-countdown @@ -46,10 +50,6 @@ bool function ClientCommandCallback_PrivateMatchLaunch( entity player, array<str } else { - if ( GetConVarBool( "ns_private_match_only_host_can_start" ) ) - if ( !NSIsPlayerIndexLocalPlayer( player.GetPlayerIndex() ) ) - return true - // start match file.startState = ePrivateMatchStartState.STARTING thread StartMatch() |