From 09bda77f4d4ee9c8b639c65af4e444b782123c23 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 15 Nov 2014 00:55:07 +0100 Subject: [PATCH] Fix g_balance_teams not working in CA (it wasn't taking into account players that join in the middle of a round) --- qcsrc/server/teamplay.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2