]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/gamemodes/gamemode/domination/sv_domination.qc
Domination: fix domination percentage on the HUD not reset for spectators when the...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / domination / sv_domination.qc
index 7d3a02bfd60343729669009e2bc18f7f7ac96f98..0a5daff457955b9fdd8521e029a19388b4e8bbbc 100644 (file)
@@ -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);
        });