Fix the idle animation of the host in WithRepairAnimation.cs using the damage state of the repaired actor.

This commit is contained in:
abcdefg30
2015-12-15 20:57:55 +01:00
parent 20725c9b2c
commit 6e5181fe4d

View File

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