diff options
author | Tony J. White <tjw@tjw.org> | 2006-12-04 06:51:15 +0000 |
---|---|---|
committer | Tony J. White <tjw@tjw.org> | 2006-12-04 06:51:15 +0000 |
commit | 94ce65288f321dc0ea8a6f6eda7e0d844d9a943c (patch) | |
tree | aaca9cec6f60bd06cadec020dab23018d732325f /src/game/g_cmds.c | |
parent | f783198e63949577ad68bc0e34815a4e7f8fcb24 (diff) |
* (bug 2812) prevent team join spam (Phil Bordelon and R1CH)
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 4 |
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 || |