From e190093ac4ae76ead5c3a446da3f0cf1180cf861 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Fri, 8 May 2015 13:23:42 +0200 Subject: [PATCH] Fix WithIdleOverlay to start with first frame after make animation --- OpenRA.Mods.Common/Traits/Render/WithIdleOverlay.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Render/WithIdleOverlay.cs b/OpenRA.Mods.Common/Traits/Render/WithIdleOverlay.cs index 9273ed442f..4aa424ac43 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithIdleOverlay.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithIdleOverlay.cs @@ -72,7 +72,7 @@ namespace OpenRA.Mods.Common.Traits var anim = new AnimationWithOffset(overlay, () => body.LocalToWorld(info.Offset.Rotate(body.QuantizeOrientation(self, self.Orientation))), () => IsTraitDisabled || !buildComplete, - () => info.PauseOnLowPower && self.IsDisabled(), + () => (info.PauseOnLowPower && self.IsDisabled()) || !buildComplete, p => WithTurret.ZOffsetFromCenter(self, p, 1)); rs.Add(anim, info.Palette, info.IsPlayerPalette);