]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fixed Clan Arena team counter for Perfect medal
authorz411 <z411@omaera.org>
Wed, 21 Oct 2020 23:07:40 +0000 (20:07 -0300)
committerz411 <z411@omaera.org>
Wed, 21 Oct 2020 23:07:40 +0000 (20:07 -0300)
qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc

index 0e03cae39c39f7b5e969a356c0071e60ff8e2a8d..24d8781a12f060f2c99d5d60c17d670b7480a475 100644 (file)
@@ -11,7 +11,7 @@ void CA_count_alive_players()
                Team_SetNumberOfAlivePlayers(Team_GetTeamFromIndex(i), 0);
                Team_SetNumberOfPlayers(Team_GetTeamFromIndex(i), 0);
        }
-       FOREACH_CLIENT(IS_PLAYER(it) && Entity_HasValidTeam(it),
+       FOREACH_CLIENT(Entity_HasValidTeam(it),
        {
                ++total_players;
                entity team_ = Entity_GetTeam(it);
@@ -20,7 +20,7 @@ void CA_count_alive_players()
                ++num_total;
                Team_SetNumberOfPlayers(team_, num_total);
                
-               if (IS_DEAD(it))
+               if (IS_DEAD(it) || !IS_PLAYER(it))
                {
                        continue;
                }