Fix WithIdleOverlay to start with first frame after make animation

This commit is contained in:
reaperrr
2015-05-08 13:23:42 +02:00
parent 7154ce4a2f
commit e190093ac4

View File

@@ -72,7 +72,7 @@ namespace OpenRA.Mods.Common.Traits
var anim = new AnimationWithOffset(overlay, var anim = new AnimationWithOffset(overlay,
() => body.LocalToWorld(info.Offset.Rotate(body.QuantizeOrientation(self, self.Orientation))), () => body.LocalToWorld(info.Offset.Rotate(body.QuantizeOrientation(self, self.Orientation))),
() => IsTraitDisabled || !buildComplete, () => IsTraitDisabled || !buildComplete,
() => info.PauseOnLowPower && self.IsDisabled(), () => (info.PauseOnLowPower && self.IsDisabled()) || !buildComplete,
p => WithTurret.ZOffsetFromCenter(self, p, 1)); p => WithTurret.ZOffsetFromCenter(self, p, 1));
rs.Add(anim, info.Palette, info.IsPlayerPalette); rs.Add(anim, info.Palette, info.IsPlayerPalette);