Make WithSpriteBody.PlayCustomAnimation resume loop of Sequence
...after it finished playing.
This commit is contained in:
@@ -75,8 +75,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
if (!IsTraitDisabled && !wsb.IsTraitDisabled && !string.IsNullOrEmpty(Info.AttackSequence))
|
||||
{
|
||||
attackAnimPlaying = true;
|
||||
wsb.PlayCustomAnimation(self, Info.AttackSequence,
|
||||
() => { wsb.CancelCustomAnimation(self); attackAnimPlaying = false; });
|
||||
wsb.PlayCustomAnimation(self, Info.AttackSequence, () => attackAnimPlaying = false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user