Update movement inside leap to show attack animation

This commit is contained in:
Hedog
2019-07-20 14:43:24 +02:00
committed by abcdefg30
parent 2c24a607bc
commit 2a6f2bbe0e
2 changed files with 9 additions and 0 deletions

View File

@@ -255,6 +255,11 @@ namespace OpenRA.Mods.Common.Traits
}
void ITick.Tick(Actor self)
{
UpdateMovement(self);
}
public void UpdateMovement(Actor self)
{
var newMovementTypes = MovementType.None;
if ((oldPos - CenterPosition).HorizontalLengthSquared != 0)