mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
explicitly prevent movement whenever playing scripted animations
This commit is contained in:
parent
cdb325f19a
commit
8792e76f5d
@ -2366,7 +2366,7 @@ namespace MWMechanics
|
||||
}
|
||||
}
|
||||
|
||||
if (!isMovementAnimationControlled())
|
||||
if (!isMovementAnimationControlled() && mAnimQueue.empty())
|
||||
world->queueMovement(mPtr, vec);
|
||||
}
|
||||
|
||||
@ -2435,7 +2435,7 @@ namespace MWMechanics
|
||||
}
|
||||
|
||||
// Update movement
|
||||
if (isMovementAnimationControlled() && mPtr.getClass().isActor())
|
||||
if (isMovementAnimationControlled() && mPtr.getClass().isActor() && mAnimQueue.empty())
|
||||
world->queueMovement(mPtr, moved);
|
||||
|
||||
mSkipAnim = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user