This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)
リビジョン | d71e6eb5bec483faef87665903dd65e9283482be (tree) |
---|---|
日時 | 2022-12-17 00:46:24 |
作者 | Adam Kaminski <kaminskiadam9@gmai...> |
コミッター | Adam Kaminski |
Added a check that prevents the server from executing the team CCMD.
@@ -1941,6 +1941,10 @@ | ||
1941 | 1941 | if ( !( GAMEMODE_GetCurrentFlags() & GMF_PLAYERSONTEAMS ) ) |
1942 | 1942 | return; |
1943 | 1943 | |
1944 | + // The server can't do this! | |
1945 | + if ( NETWORK_GetState( ) == NETSTATE_SERVER ) | |
1946 | + return; | |
1947 | + | |
1944 | 1948 | // If the played inputted a team they'd like to join (such as, "team red"), handle that |
1945 | 1949 | // with the changeteam command. |
1946 | 1950 | if ( argv.argc( ) > 1 ) |