Fix actors not going back to idle animation after custom animation

This commit is contained in:
reaperrr
2015-11-28 22:21:32 +01:00
parent abed25d293
commit e9ed50a831
7 changed files with 7 additions and 7 deletions

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.PlayCustomAnimation(host, info.Sequence, () => spriteBody.CancelCustomAnimation(self));
}
}
}