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
This commit is contained in:
pevers
2015-02-15 23:52:24 +01:00
parent 5bcd56eb9d
commit 329d610577

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Traits
public IEnumerable<IRenderable> 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
}
}
}
}
}