summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2010-03-31 20:28:02 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:32 +0000
commit8a26228262896a90ccc7411da8972263032daceb (patch)
tree405e2f5fd6e7474ba39b2d815517247d942e164b /src/game
parente852aff93e0691a050d876dada16eb15ecd1b134 (diff)
* (bug 4575) CMD_CHEAT_TEAM gives the wrong error message (thanks Oops)
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_cmds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 4a3a1822..caa73ccd 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -2930,8 +2930,7 @@ void ClientCommand( int clientNum )
G_FloodLimited( ent ) ) )
return;
- if( ( command->cmdFlags & CMD_TEAM ||
- ( command->cmdFlags & CMD_CHEAT_TEAM && !g_cheats.integer ) ) &&
+ if( command->cmdFlags & CMD_TEAM &&
ent->client->pers.teamSelection == TEAM_NONE )
{
G_TriggerMenu( clientNum, MN_CMD_TEAM );