diff options
author | Tony J. White <tjw@tjw.org> | 2006-09-10 04:46:52 +0000 |
---|---|---|
committer | Tony J. White <tjw@tjw.org> | 2006-09-10 04:46:52 +0000 |
commit | e619da81c77cea380e664942b75341fe094ed33d (patch) | |
tree | 771a19c33eb703230c7b0d3d1783a0750ecff07a /src | |
parent | 28b662b440a8158344c0b072cd5324820dde3e02 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |