Add plumbing for notifying traits of movement
More precisely, about start and stop of movement.
This commit is contained in:
@@ -51,7 +51,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
if (IsTraitDisabled || wsb.IsTraitDisabled)
|
||||
return;
|
||||
|
||||
var isMoving = movement.IsMoving && !self.IsDead;
|
||||
var isMoving = movement.CurrentMovementTypes.HasFlag(MovementType.Horizontal) && !self.IsDead;
|
||||
|
||||
if (isMoving ^ (wsb.DefaultAnimation.CurrentSequence.Name != Info.MoveSequence))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user