Skip to content

Commit

Permalink
Restore lines-on-selection for spectators with TargetLinesType.Automa…
Browse files Browse the repository at this point in the history
…tic.
  • Loading branch information
pchote committed Aug 8, 2019
1 parent d088841 commit 16151ca
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions OpenRA.Mods.Common/Traits/Render/DrawLineToTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ public DrawLineToTarget(Actor self, DrawLineToTargetInfo info)

public void ShowTargetLines(Actor self)
{
if (Game.Settings.Game.TargetLines < TargetLinesType.Automatic)
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)
if (Game.Settings.Game.TargetLines < TargetLinesType.Automatic || self.IsIdle)
return;

// Reset the order line timeout.
Expand Down Expand Up @@ -111,6 +106,8 @@ public static class LineTargetExts
{
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)
return;

Expand Down

0 comments on commit 16151ca

Please sign in to comment.