From 6755aa5c9426a2e1b5cf31cb84243e05d4620c16 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 24 Apr 2018 13:43:19 +0200 Subject: Allow players to leave the team during a teamvote. --- src/game/g_admin.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/game/g_admin.c') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index c3341d0..9e74df8 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -7772,11 +7772,7 @@ qboolean G_admin_putmespec( gentity_t *ent, int skiparg ) cs_offset = 1; else cs_offset = 0; - if( level.teamVoteTime[ cs_offset ] ) - { - trap_SendServerCommand( ent-g_entities, "print \"Can not leave team during a team vote\n\"" ); - return qfalse; - } + //guard against build timer exploit if( ent->client->pers.teamSelection != PTE_NONE && ent->client->sess.sessionTeam != TEAM_SPECTATOR && ( ent->client->ps.stats[ STAT_PCLASS ] == PCL_ALIEN_BUILDER0 || -- cgit