]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Check allowed teams before counting them
authorMario <mario.mario@y7mail.com>
Tue, 28 Jan 2014 05:33:39 +0000 (16:33 +1100)
committerMario <mario.mario@y7mail.com>
Tue, 28 Jan 2014 05:33:39 +0000 (16:33 +1100)
qcsrc/server/command/cmd.qc

index 2291613665f0dd6e2182a8d45047c6497b0766db..f123367f9045bd92b69e3c0154285ac8a87aa19f 100644 (file)
@@ -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))
                                                                                        {