From 17fce71e564ed140385f6acd1c6213702be31226 Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Mon, 6 Nov 2006 16:58:45 +0000 Subject: * (bug 2912) check team selection before allowing follow --- src/game/g_cmds.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; -- cgit