Skip to content

Commit

Permalink
Restore red lines for harvester targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Jan 11, 2020
1 parent 308c64c commit 9d3e197
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Activities/FindAndDeliverResources.cs
Expand Up @@ -245,7 +245,7 @@ public override IEnumerable<TargetLineNode> TargetLineNodes(Actor self)
yield return n;

if (orderLocation != null)
yield return new TargetLineNode(Target.FromCell(self.World, orderLocation.Value), Color.Green);
yield return new TargetLineNode(Target.FromCell(self.World, orderLocation.Value), Color.Red);
else if (deliverActor != null)
yield return new TargetLineNode(Target.FromActor(deliverActor), Color.Green);
}
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Activities/HarvestResource.cs
Expand Up @@ -109,7 +109,7 @@ public override void Cancel(Actor self, bool keepQueue = false)

public override IEnumerable<TargetLineNode> TargetLineNodes(Actor self)
{
yield return new TargetLineNode(Target.FromCell(self.World, targetCell), Color.Green);
yield return new TargetLineNode(Target.FromCell(self.World, targetCell), Color.Red);
}
}
}

0 comments on commit 9d3e197

Please sign in to comment.