Make Resupply display target lines for all queued move activities

This commit is contained in:
abcdefg30
2020-05-20 19:14:46 +02:00
committed by tovl
parent d261648ab0
commit 96b06c75d1

View File

@@ -188,8 +188,16 @@ namespace OpenRA.Mods.Common.Activities
if (ChildActivity == null) if (ChildActivity == null)
yield return new TargetLineNode(host, Color.Green); yield return new TargetLineNode(host, Color.Green);
else else
foreach (var n in ChildActivity.TargetLineNodes(self)) {
yield return n; var current = ChildActivity;
while (current != null)
{
foreach (var n in current.TargetLineNodes(self))
yield return n;
current = current.NextActivity;
}
}
} }
void OnResupplyEnding(Actor self, bool isHostInvalid = false) void OnResupplyEnding(Actor self, bool isHostInvalid = false)