Make passive teams no longer mess with game stats
authorWuzzy <Wuzzy2@mail.ru>
Wed, 16 Jan 2019 22:48:48 +0100
changeset 14617 244699a97734
parent 14616 4638aa2ea8f2
child 14618 7c5a9c1b9d4e
Make passive teams no longer mess with game stats
hedgewars/uStats.pas
--- a/hedgewars/uStats.pas	Wed Jan 16 22:39:27 2019 +0100
+++ b/hedgewars/uStats.pas	Wed Jan 16 22:48:48 2019 +0100
@@ -480,7 +480,7 @@
 
             { Send player stats for winner clans/teams.
             The clan that survived is ranked 1st. }
-            if (Clan^.ClanHealth > 0) and (not Clan^.Passive) then
+            if (Clan^.ClanHealth > 0) 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) and (not TeamsArray[t]^.Passive) then
+                        if (TeamsArray[t]^.Clan^.ClanIndex = deathEntry^.KilledClans[c]^.ClanIndex) then
                             begin
                             SendStat(siTeamRank, IntToStr(currentRank));
                             SendStat(siPlayerKills, IntToStr(deathEntry^.killedClans[c]^.Color) + ' ' +