Draw target lines for allied players and observers

This commit is contained in:
Ivaylo Draganov
2018-11-03 14:20:29 +02:00
committed by reaperrr
parent 927b6cd561
commit 31f2441709

View File

@@ -112,7 +112,7 @@ namespace OpenRA.Mods.Common.Traits
public static void SetTargetLine(this Actor self, Target target, Color color, bool display)
{
if (self.Owner != self.World.LocalPlayer)
if (!self.Owner.IsAlliedWith(self.World.LocalPlayer))
return;
self.World.AddFrameEndTask(w =>