Fix the idle animation of the hostBuilding in Rearm.cs

using the damage state of the reloaded actor
This commit is contained in:
abcdefg30
2015-12-13 16:00:18 +01:00
parent 2017a6d989
commit cf9ea91606

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.CancelCustomAnimation(self));
wsb.PlayCustomAnimation(hostBuilding, "active", () => wsb.CancelCustomAnimation(hostBuilding));
var sound = pool.Info.RearmSound;
if (sound != null)