From 94ce65288f321dc0ea8a6f6eda7e0d844d9a943c Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Mon, 4 Dec 2006 06:51:15 +0000 Subject: * (bug 2812) prevent team join spam (Phil Bordelon and R1CH) --- src/game/g_cmds.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/g_cmds.c') 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 || -- cgit