From 8a26228262896a90ccc7411da8972263032daceb Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Wed, 31 Mar 2010 20:28:02 +0000 Subject: * (bug 4575) CMD_CHEAT_TEAM gives the wrong error message (thanks Oops) --- src/game/g_cmds.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game') 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 ); -- cgit