Display selection decorations to allies & observers.
This commit is contained in:
@@ -54,7 +54,7 @@ namespace OpenRA.Traits
|
|||||||
|
|
||||||
void DrawPips(WorldRenderer wr, Actor self, float2 basePosition)
|
void DrawPips(WorldRenderer wr, Actor self, float2 basePosition)
|
||||||
{
|
{
|
||||||
if (self.Owner != self.World.RenderPlayer)
|
if (!self.Owner.IsAlliedWith(self.World.RenderPlayer))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var pipSources = self.TraitsImplementing<IPips>();
|
var pipSources = self.TraitsImplementing<IPips>();
|
||||||
@@ -96,7 +96,7 @@ namespace OpenRA.Traits
|
|||||||
|
|
||||||
void DrawTags(WorldRenderer wr, Actor self, float2 basePosition)
|
void DrawTags(WorldRenderer wr, Actor self, float2 basePosition)
|
||||||
{
|
{
|
||||||
if (self.Owner != self.World.RenderPlayer)
|
if (!self.Owner.IsAlliedWith(self.World.RenderPlayer))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// If a mod wants to implement a unit with multiple tags, then they are placed on multiple rows
|
// If a mod wants to implement a unit with multiple tags, then they are placed on multiple rows
|
||||||
|
|||||||
Reference in New Issue
Block a user