summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2007-03-03 02:37:18 +0000
committerTony J. White <tjw@tjw.org>2007-03-03 02:37:18 +0000
commitc5de1709c4f2691713d2838f818555bfea46e3b0 (patch)
tree3af96301c3a2d17b585fd21bb897d778944054f6 /src/game
parent4f66d1a3c3bbe1721e2f5fa14ecf2aedfd096ffe (diff)
* (bug 2924) fix check for spectator following another spectator (M. Kristall)
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 7d356e88..5ae5320f 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -2524,7 +2524,7 @@ void Cmd_Follow_f( gentity_t *ent, qboolean toggle )
return;
// can't follow another spectator
- if( ent->client->pers.teamSelection != PTE_NONE )
+ if( level.clients[ i ].pers.teamSelection == PTE_NONE )
return;
ent->client->sess.spectatorState = SPECTATOR_FOLLOW;