Display selection decorations to allies & observers.

This commit is contained in:
Paul Chote
2013-04-10 19:37:04 +12:00
parent c428cad70c
commit ca8dbce0ef

View File

@@ -54,7 +54,7 @@ namespace OpenRA.Traits
void DrawPips(WorldRenderer wr, Actor self, float2 basePosition)
{
if (self.Owner != self.World.RenderPlayer)
if (!self.Owner.IsAlliedWith(self.World.RenderPlayer))
return;
var pipSources = self.TraitsImplementing<IPips>();
@@ -96,7 +96,7 @@ namespace OpenRA.Traits
void DrawTags(WorldRenderer wr, Actor self, float2 basePosition)
{
if (self.Owner != self.World.RenderPlayer)
if (!self.Owner.IsAlliedWith(self.World.RenderPlayer))
return;
// If a mod wants to implement a unit with multiple tags, then they are placed on multiple rows