diff --git a/OpenRA.Mods.Common/Lint/CheckPlayers.cs b/OpenRA.Mods.Common/Lint/CheckPlayers.cs index 9702b272a6..f9591bdddd 100644 --- a/OpenRA.Mods.Common/Lint/CheckPlayers.cs +++ b/OpenRA.Mods.Common/Lint/CheckPlayers.cs @@ -61,9 +61,7 @@ namespace OpenRA.Mods.Common.Lint var actorReference = new ActorReference(kv.Value.Value, kv.Value.ToDictionary()); var ownerInit = actorReference.InitDict.GetOrDefault(); if (ownerInit == null) - { emitError("Actor {0} is not owned by any player.".F(kv.Key)); - } else { var ownerName = ownerInit.PlayerName; diff --git a/OpenRA.Mods.Common/Traits/Health.cs b/OpenRA.Mods.Common/Traits/Health.cs index 269a08299b..7da9ddcc96 100644 --- a/OpenRA.Mods.Common/Traits/Health.cs +++ b/OpenRA.Mods.Common/Traits/Health.cs @@ -91,7 +91,7 @@ namespace OpenRA.Mods.Common.Traits }; foreach (var nd in self.TraitsImplementing() - .Concat(self.Owner.PlayerActor.TraitsImplementing())) + .Concat(self.Owner.PlayerActor.TraitsImplementing())) nd.Damaged(self, ai); foreach (var nd in self.TraitsImplementing()) @@ -99,7 +99,7 @@ namespace OpenRA.Mods.Common.Traits if (Info.NotifyAppliedDamage && repairer != null && repairer.IsInWorld && !repairer.IsDead) foreach (var nd in repairer.TraitsImplementing() - .Concat(repairer.Owner.PlayerActor.TraitsImplementing())) + .Concat(repairer.Owner.PlayerActor.TraitsImplementing())) nd.AppliedDamage(repairer, self, ai); } @@ -133,7 +133,7 @@ namespace OpenRA.Mods.Common.Traits }; foreach (var nd in self.TraitsImplementing() - .Concat(self.Owner.PlayerActor.TraitsImplementing())) + .Concat(self.Owner.PlayerActor.TraitsImplementing())) nd.Damaged(self, ai); if (DamageState != oldState) @@ -142,7 +142,7 @@ namespace OpenRA.Mods.Common.Traits if (Info.NotifyAppliedDamage && attacker != null && attacker.IsInWorld && !attacker.IsDead) foreach (var nd in attacker.TraitsImplementing() - .Concat(attacker.Owner.PlayerActor.TraitsImplementing())) + .Concat(attacker.Owner.PlayerActor.TraitsImplementing())) nd.AppliedDamage(attacker, self, ai); if (hp == 0)