Merge pull request #10234 from abcdefg30/damagedFix

Fix the idle animation of the host in WithRepairAnimation.cs
This commit is contained in:
Oliver Brakmann
2015-12-15 22:51:18 +01:00

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Traits
{ {
var spriteBody = host.TraitOrDefault<WithSpriteBody>(); var spriteBody = host.TraitOrDefault<WithSpriteBody>();
if (spriteBody != null && !(info.PauseOnLowPower && self.IsDisabled())) if (spriteBody != null && !(info.PauseOnLowPower && self.IsDisabled()))
spriteBody.PlayCustomAnimation(host, info.Sequence, () => spriteBody.CancelCustomAnimation(self)); spriteBody.PlayCustomAnimation(host, info.Sequence, () => spriteBody.CancelCustomAnimation(host));
} }
} }
} }