Restore selection lines for TargetLinesType.Automatic spectators.

This commit is contained in:
Paul Chote
2019-08-08 11:02:34 +00:00
committed by teinarss
parent 19aea3c07a
commit d0faaf29ff

View File

@@ -45,12 +45,7 @@ namespace OpenRA.Mods.Common.Traits
public void ShowTargetLines(Actor self) public void ShowTargetLines(Actor self)
{ {
if (Game.Settings.Game.TargetLines < TargetLinesType.Automatic) if (Game.Settings.Game.TargetLines < TargetLinesType.Automatic || self.IsIdle)
return;
// Target lines are only automatically shown for the owning player
// Spectators and allies must use the force-display modifier
if (self.IsIdle || self.Owner != self.World.LocalPlayer)
return; return;
// Reset the order line timeout. // Reset the order line timeout.
@@ -111,6 +106,8 @@ namespace OpenRA.Mods.Common.Traits
{ {
public static void ShowTargetLines(this Actor self) public static void ShowTargetLines(this Actor self)
{ {
// Target lines are only automatically shown for the owning player
// Spectators and allies must use the force-display modifier
if (self.Owner != self.World.LocalPlayer) if (self.Owner != self.World.LocalPlayer)
return; return;