From 8b13d3e4c79a421f3417b605b109c36860699444 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Mon, 18 May 2020 10:32:05 +0200 Subject: [PATCH] Fix resupply not displaying target lines correctly --- OpenRA.Mods.Common/Activities/Resupply.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Activities/Resupply.cs b/OpenRA.Mods.Common/Activities/Resupply.cs index 657215141c..614771c45a 100644 --- a/OpenRA.Mods.Common/Activities/Resupply.cs +++ b/OpenRA.Mods.Common/Activities/Resupply.cs @@ -133,7 +133,7 @@ namespace OpenRA.Mods.Common.Activities // HACK: Repairable needs the actor to move to host center. // TODO: Get rid of this or at least replace it with something less hacky. if (repairableNear == null) - QueueChild(move.MoveTo(targetCell)); + QueueChild(move.MoveTo(targetCell, targetLineColor: Color.Green)); var delta = (self.CenterPosition - host.CenterPosition).LengthSquared; var transport = transportCallers.FirstOrDefault(t => t.MinimumDistance.LengthSquared < delta); @@ -222,7 +222,7 @@ namespace OpenRA.Mods.Common.Activities { if (rp != null && rp.Path.Count > 0) foreach (var cell in rp.Path) - QueueChild(move.MoveTo(cell, 1, repairableNear != null ? null : host.Actor, true)); + QueueChild(move.MoveTo(cell, 1, repairableNear != null ? null : host.Actor, true, Color.Green)); else if (repairableNear == null) QueueChild(move.MoveToTarget(self, host)); }