Merge pull request #8109 from reaperrr/fix-idleoverlay

Fixes WithIdleOverlay to start with first frame after make animation
This commit is contained in:
Paul Chote
2015-05-17 13:06:44 +01:00

View File

@@ -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);