diff options
author | Tony J. White <tjw@tjw.org> | 2006-11-06 16:58:45 +0000 |
---|---|---|
committer | Tony J. White <tjw@tjw.org> | 2006-11-06 16:58:45 +0000 |
commit | 17fce71e564ed140385f6acd1c6213702be31226 (patch) | |
tree | 30d8dbc33485198a1f73556b457c1640a2e56bf5 /src | |
parent | b0febaf356cf835263370b514d476bd8871eef2b (diff) |
* (bug 2912) check team selection before allowing follow
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_cmds.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 9395605f..2f9618fc 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2481,6 +2481,8 @@ Cmd_FollowCycle_f void Cmd_FollowCycle_f( gentity_t *ent, int dir ) { // won't work unless spectating + if( ent->client->pers.teamSelection != PTE_NONE ) + return; if( ent->client->sess.spectatorState == SPECTATOR_NOT ) return; |