Merge pull request #10234 from abcdefg30/damagedFix
Fix the idle animation of the host in WithRepairAnimation.cs
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user