From d0faaf29ff7637c97391462b3131ac81678d2968 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 8 Aug 2019 11:02:34 +0000 Subject: [PATCH] Restore selection lines for TargetLinesType.Automatic spectators. --- OpenRA.Mods.Common/Traits/Render/DrawLineToTarget.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Render/DrawLineToTarget.cs b/OpenRA.Mods.Common/Traits/Render/DrawLineToTarget.cs index aa2de7394e..5aa74003b1 100644 --- a/OpenRA.Mods.Common/Traits/Render/DrawLineToTarget.cs +++ b/OpenRA.Mods.Common/Traits/Render/DrawLineToTarget.cs @@ -45,12 +45,7 @@ namespace OpenRA.Mods.Common.Traits 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. @@ -111,6 +106,8 @@ namespace OpenRA.Mods.Common.Traits { 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;