From: terencehill Date: Wed, 2 Nov 2022 14:44:33 +0000 (+0100) Subject: Domination: fix domination percentage on the HUD not reset for spectators when the... X-Git-Tag: xonotic-v0.8.6~307 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=be67100213718a57e4d0607466ecc1d98f803fc4;p=xonotic%2Fxonotic-data.pk3dir.git Domination: fix domination percentage on the HUD not reset for spectators when the warmup ends --- 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); });