From b8e65df66d31e31e1a2b6bd8530d9649cfcec840 Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Mon, 9 Oct 2006 15:13:37 +0000 Subject: * (bug 2860) really fix the vote prevention when in spec follow mode this time. (Marc H. Thoben) --- src/game/g_cmds.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index b181086f..9b2eba2a 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -981,7 +981,7 @@ void Cmd_CallVote_f( gentity_t *ent ) return; } - if( ent->client->sess.sessionTeam == TEAM_SPECTATOR ) + if( ent->client->pers.teamSelection == PTE_NONE ) { trap_SendServerCommand( ent-g_entities, "print \"Not allowed to call a vote as spectator\n\"" ); return; @@ -1147,7 +1147,7 @@ void Cmd_Vote_f( gentity_t *ent ) return; } - if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_NONE ) + if( ent->client->pers.teamSelection == PTE_NONE ) { trap_SendServerCommand( ent-g_entities, "print \"Not allowed to vote as spectator\n\"" ); return; @@ -1216,7 +1216,7 @@ void Cmd_CallTeamVote_f( gentity_t *ent ) return; } - if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_NONE ) + if( ent->client->pers.teamSelection == PTE_NONE ) { trap_SendServerCommand( ent-g_entities, "print \"Not allowed to call a vote as spectator\n\"" ); return; @@ -1396,7 +1396,7 @@ void Cmd_TeamVote_f( gentity_t *ent ) return; } - if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_NONE ) + if( ent->client->pers.teamSelection == PTE_NONE ) { trap_SendServerCommand( ent-g_entities, "print \"Not allowed to vote as spectator\n\"" ); return; -- cgit