Fix WithAttackAnimation breaking WithMoveAnimation

This commit is contained in:
reaperrr
2015-08-08 17:00:38 +02:00
parent 88b98fa8ef
commit 281a87acbc
2 changed files with 6 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.Traits
public void Attacking(Actor self, Target target, Armament a, Barrel barrel)
{
if (!string.IsNullOrEmpty(info.AttackSequence))
wsb.PlayCustomAnimation(self, info.AttackSequence);
wsb.PlayCustomAnimation(self, info.AttackSequence, () => wsb.CancelCustomAnimation(self));
}
public void Tick(Actor self)