From: terencehill Date: Fri, 14 Nov 2014 23:55:07 +0000 (+0100) Subject: Fix g_balance_teams not working in CA (it wasn't taking into account players that... X-Git-Tag: xonotic-v0.8.0~126^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=09bda77f4d4ee9c8b639c65af4e444b782123c23;p=xonotic%2Fxonotic-data.pk3dir.git Fix g_balance_teams not working in CA (it wasn't taking into account players that join in the middle of a round) --- diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 06286e8f5..43cbefd2b 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -513,7 +513,7 @@ void GetTeamCounts(entity ignore) FOR_EACH_CLIENT(head) { float t; - if(IS_PLAYER(head)) + if(IS_PLAYER(head) || head.caplayer) t = head.team; else if(head.team_forced > 0) t = head.team_forced; // reserve the spot