hedgewars/uStats.pas
changeset 14632 3cf7799e04b5
parent 14618 6d2954037e57
child 14638 244699a97734
--- a/hedgewars/uStats.pas	Wed Jan 16 07:30:06 2019 +0100
+++ b/hedgewars/uStats.pas	Wed Jan 16 15:40:11 2019 +0100
@@ -480,7 +480,7 @@
 
             { Send player stats for winner clans/teams.
             The clan that survived is ranked 1st. }
-            if Clan^.ClanHealth > 0 then
+            if (Clan^.ClanHealth > 0) and (not Clan^.Passive) then
                 begin
                 winnersClan:= Clan;
                 if SendRankingStatsOn then
@@ -532,7 +532,7 @@
                 if ((deathEntry^.KilledClans[c]^.ClanHealth) = 0) and (not deathEntry^.KilledClans[c]^.StatsHandled) then
                     begin
                     for t:= 0 to Pred(TeamsCount) do
-                        if TeamsArray[t]^.Clan^.ClanIndex = deathEntry^.KilledClans[c]^.ClanIndex then
+                        if (TeamsArray[t]^.Clan^.ClanIndex = deathEntry^.KilledClans[c]^.ClanIndex) and (not TeamsArray[t]^.Passive) then
                             begin
                             SendStat(siTeamRank, IntToStr(currentRank));
                             SendStat(siPlayerKills, IntToStr(deathEntry^.killedClans[c]^.Color) + ' ' +