summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/g_cmds.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 8b2e3f86..c76e47bf 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -743,6 +743,10 @@ void Cmd_Team_f( gentity_t *ent )
return;
}
+ // stop team join spam
+ if( ent->client->pers.teamSelection == team )
+ return;
+
//guard against build timer exploit
if( ent->client->pers.teamSelection != PTE_NONE &&
( ent->client->ps.stats[ STAT_PCLASS ] == PCL_ALIEN_BUILDER0 ||