summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2006-10-09 15:13:37 +0000
committerTony J. White <tjw@tjw.org>2006-10-09 15:13:37 +0000
commitb8e65df66d31e31e1a2b6bd8530d9649cfcec840 (patch)
tree8ef450bf124a305bf1bc2b9b0b68a8b525a591c3
parenta3b376bb1d4ef69436e2a28d76de62289db9c6d8 (diff)
* (bug 2860) really fix the vote prevention when in spec follow mode this
time. (Marc H. Thoben)
-rw-r--r--src/game/g_cmds.c8
1 files changed, 4 insertions, 4 deletions
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;