From be67100213718a57e4d0607466ecc1d98f803fc4 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 2 Nov 2022 15:44:33 +0100 Subject: [PATCH] Domination: fix domination percentage on the HUD not reset for spectators when the warmup ends --- .../gamemodes/gamemode/domination/sv_domination.qc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qc b/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qc index 7d3a02bfd..0a5daff45 100644 --- a/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qc +++ b/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qc @@ -427,10 +427,13 @@ MUTATOR_HOOKFUNCTION(dom, TeamBalance_CheckAllowedTeams) MUTATOR_HOOKFUNCTION(dom, reset_map_players) { total_pps = 0, pps_red = 0, pps_blue = 0, pps_yellow = 0, pps_pink = 0; - FOREACH_CLIENT(IS_PLAYER(it), { - PutClientInServer(it); - if(domination_roundbased) - it.player_blocked = 1; + FOREACH_CLIENT(true, { + if (IS_PLAYER(it)) + { + PutClientInServer(it); + if(domination_roundbased) + it.player_blocked = 1; + } if(IS_REAL_CLIENT(it)) set_dom_state(it); }); -- 2.39.2