Fix WithSpriteBody PlayCustomAnimationRepeating

Lacked damage stage awareness.
This commit is contained in:
reaperrr
2015-07-15 07:02:31 +02:00
parent ded5a2b16a
commit 74b948342e

View File

@@ -81,8 +81,8 @@ namespace OpenRA.Mods.Common.Traits
public void PlayCustomAnimationRepeating(Actor self, string name) public void PlayCustomAnimationRepeating(Actor self, string name)
{ {
DefaultAnimation.PlayThen(name, var sequence = NormalizeSequence(self, name);
() => PlayCustomAnimationRepeating(self, name)); DefaultAnimation.PlayThen(sequence, () => PlayCustomAnimationRepeating(self, sequence));
} }
public void PlayCustomAnimationBackwards(Actor self, string name, Action after = null) public void PlayCustomAnimationBackwards(Actor self, string name, Action after = null)