From 3e73357619eda64fefa7f16c2d853eecde18d19c Mon Sep 17 00:00:00 2001 From: reaperrr Date: Mon, 1 Oct 2018 21:26:08 +0200 Subject: [PATCH] Remove IsIdle check from DrawLineToTarget.OnBecomingIdle OnBecomingIdle is triggered when IsIdle becomes true, so this check is bogus. --- OpenRA.Mods.Common/Traits/Render/DrawLineToTarget.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Render/DrawLineToTarget.cs b/OpenRA.Mods.Common/Traits/Render/DrawLineToTarget.cs index 614e22db29..fa741c3944 100644 --- a/OpenRA.Mods.Common/Traits/Render/DrawLineToTarget.cs +++ b/OpenRA.Mods.Common/Traits/Render/DrawLineToTarget.cs @@ -87,8 +87,7 @@ namespace OpenRA.Mods.Common.Traits void INotifyBecomingIdle.OnBecomingIdle(Actor a) { - if (a.IsIdle) - targets = null; + targets = null; } }