Fix repair cursor visual feedback target.

This commit is contained in:
Paul Chote
2017-04-22 22:31:59 +01:00
parent 99f3f37afe
commit d9800d4e2b
3 changed files with 5 additions and 3 deletions

View File

@@ -194,9 +194,10 @@ namespace OpenRA.Mods.Common.Widgets
if (!flashed && !o.SuppressVisualFeedback)
{
if (o.TargetActor != null)
var visualTargetActor = o.VisualFeedbackTarget ?? o.TargetActor;
if (visualTargetActor != null)
{
world.AddFrameEndTask(w => w.Add(new FlashTarget(o.TargetActor)));
world.AddFrameEndTask(w => w.Add(new FlashTarget(visualTargetActor)));
flashed = true;
}
else if (o.TargetLocation != CPos.Zero)