]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix g_balance_teams not working in CA (it wasn't taking into account players that...
authorterencehill <piuntn@gmail.com>
Fri, 14 Nov 2014 23:55:07 +0000 (00:55 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 14 Nov 2014 23:55:07 +0000 (00:55 +0100)
qcsrc/server/teamplay.qc

index 06286e8f55c7cfc4190895d5f4220125abf18362..43cbefd2b62fa9cff5130dfb3addc9ecbe934fba 100644 (file)
@@ -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