• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)


Commit MetaInfo

Revisiond71e6eb5bec483faef87665903dd65e9283482be (tree)
Zeit2022-12-17 00:46:24
AutorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Added a check that prevents the server from executing the team CCMD.

Ändern Zusammenfassung

Diff

diff -r 73a1c6a99b8d -r d71e6eb5bec4 src/team.cpp
--- a/src/team.cpp Fri Dec 16 10:42:31 2022 -0500
+++ b/src/team.cpp Fri Dec 16 10:46:24 2022 -0500
@@ -1941,6 +1941,10 @@
19411941 if ( !( GAMEMODE_GetCurrentFlags() & GMF_PLAYERSONTEAMS ) )
19421942 return;
19431943
1944+ // The server can't do this!
1945+ if ( NETWORK_GetState( ) == NETSTATE_SERVER )
1946+ return;
1947+
19441948 // If the played inputted a team they'd like to join (such as, "team red"), handle that
19451949 // with the changeteam command.
19461950 if ( argv.argc( ) > 1 )