Merge pull request #10141 from reaperrr/fix-anim-cancel

Fix actors not going back to idle animation after custom animation
This commit is contained in:
abcdefg30
2015-12-07 15:13:00 +01:00
7 changed files with 7 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ namespace OpenRA.Mods.Common.Activities
var wsb = hostBuilding.Trait<WithSpriteBody>();
if (wsb.DefaultAnimation.HasSequence("active"))
wsb.PlayCustomAnimation(hostBuilding, "active");
wsb.PlayCustomAnimation(hostBuilding, "active", () => wsb.CancelCustomAnimation(self));
var sound = pool.Info.RearmSound;
if (sound != null)