]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Domination: fix domination percentage on the HUD not reset for spectators when the...
authorterencehill <piuntn@gmail.com>
Wed, 2 Nov 2022 14:44:33 +0000 (15:44 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 2 Nov 2022 14:44:33 +0000 (15:44 +0100)
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);
        });