From b0706e7cd05f765a3d5fdbd66cf08ee3f722e9d8 Mon Sep 17 00:00:00 2001 From: atlimit8 Date: Thu, 16 Mar 2017 17:05:56 -0500 Subject: [PATCH] Removes actor disabled support from WithIdleAnimation. --- OpenRA.Mods.Common/Traits/Render/WithIdleAnimation.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Render/WithIdleAnimation.cs b/OpenRA.Mods.Common/Traits/Render/WithIdleAnimation.cs index 9bc5b784d8..c96553387c 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithIdleAnimation.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithIdleAnimation.cs @@ -21,9 +21,6 @@ namespace OpenRA.Mods.Common.Traits.Render public readonly int Interval = 750; - [Desc("Pause when the actor is disabled. Deprecated. Use conditions instead.")] - public readonly bool PauseOnLowPower = false; - public override object Create(ActorInitializer init) { return new WithIdleAnimation(init.Self, this); } } @@ -48,8 +45,7 @@ namespace OpenRA.Mods.Common.Traits.Render if (--ticks <= 0) { - if (!(Info.PauseOnLowPower && self.IsDisabled())) - wsb.PlayCustomAnimation(self, Info.Sequences.Random(Game.CosmeticRandom), () => wsb.CancelCustomAnimation(self)); + wsb.PlayCustomAnimation(self, Info.Sequences.Random(Game.CosmeticRandom), () => wsb.CancelCustomAnimation(self)); ticks = Info.Interval; } }