From 329d6105773cb0f545793d3a727da818e3fff89c Mon Sep 17 00:00:00 2001 From: pevers Date: Sun, 15 Feb 2015 23:52:24 +0100 Subject: [PATCH] Fixed #7472 so that cargo is only shown on allied vehicles fixed spacing pips are shown on every team when shroud is disabled removed comment Remove unwanted comment explaining how ally-detection works fixed the real problem in RenderAfterWorld --- OpenRA.Game/Traits/SelectionDecorations.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Traits/SelectionDecorations.cs b/OpenRA.Game/Traits/SelectionDecorations.cs index 8cbaa49cd6..4f6dae611d 100644 --- a/OpenRA.Game/Traits/SelectionDecorations.cs +++ b/OpenRA.Game/Traits/SelectionDecorations.cs @@ -38,7 +38,7 @@ namespace OpenRA.Traits public IEnumerable RenderAfterWorld(WorldRenderer wr) { - if (!self.Owner.IsAlliedWith(self.World.RenderPlayer) && self.World.FogObscures(self)) + if (!self.Owner.IsAlliedWith(self.World.RenderPlayer) || self.World.FogObscures(self)) yield break; var b = self.Bounds; @@ -136,4 +136,4 @@ namespace OpenRA.Traits } } } -} \ No newline at end of file +}