summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2006-11-06 16:58:45 +0000
committerTony J. White <tjw@tjw.org>2006-11-06 16:58:45 +0000
commit17fce71e564ed140385f6acd1c6213702be31226 (patch)
tree30d8dbc33485198a1f73556b457c1640a2e56bf5 /src
parentb0febaf356cf835263370b514d476bd8871eef2b (diff)
* (bug 2912) check team selection before allowing follow
Diffstat (limited to 'src')
-rw-r--r--src/game/g_cmds.c2
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;