From e619da81c77cea380e664942b75341fe094ed33d Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Sun, 10 Sep 2006 04:46:52 +0000 Subject: Bug 2860 * spectators in follow mode could envoke menus for the player they are following at the time * spectators in follow mode were allowed to vote --- src/game/g_cmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 4f6804ea..666d2765 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -686,7 +686,7 @@ void Cmd_Team_f( gentity_t *ent ) ( ent->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS && level.numAlienClients >= level.numHumanClients ) ) ) { - G_TriggerMenu( ent->client->ps.clientNum, MN_A_TEAMFULL ); + G_TriggerMenu( ent - g_entities, MN_A_TEAMFULL ); return; } @@ -712,7 +712,7 @@ void Cmd_Team_f( gentity_t *ent ) ( ent->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS && level.numHumanClients >= level.numAlienClients ) ) ) { - G_TriggerMenu( ent->client->ps.clientNum, MN_H_TEAMFULL ); + G_TriggerMenu( ent - g_entities, MN_H_TEAMFULL ); return; } @@ -978,7 +978,7 @@ void Cmd_CallVote_f( gentity_t *ent ) return; } - if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_NONE ) + if( ent->client->sess.sessionTeam == TEAM_SPECTATOR ) { trap_SendServerCommand( ent-g_entities, "print \"Not allowed to call a vote as spectator\n\"" ); return; -- cgit