From: Mario Date: Tue, 28 Jan 2014 05:33:39 +0000 (+1100) Subject: Check allowed teams before counting them X-Git-Tag: xonotic-v0.8.0~196^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=55f9fb4933a3aab67e64ec3497f9831d8dd481b6;p=xonotic%2Fxonotic-data.pk3dir.git Check allowed teams before counting them --- diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 229161366..f123367f9 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -456,6 +456,7 @@ void ClientCommand_selectteam(float request, float argc) { if(autocvar_g_balance_teams && autocvar_g_balance_teams_prevent_imbalance) { + CheckAllowedTeams(self); GetTeamCounts(self); if(!TeamSmallerEqThanTeam(Team_TeamToNumber(selection), Team_TeamToNumber(self.team), self)) {