Core/Movement: backported a movemenet slot check to prevent PauseMovement from stopping movements that it's not suposed to stop

This commit is contained in:
Ovahlord committed 2020-01-04 12:17:22 +01:00
1 parent 6ad66f9cfc
commit 9f39c218db
3 files changed
+13 -1

No files matched your search

+11
View File
@@ -151,6 +151,17 @@ void MotionMaster::MovementExpired(bool reset /*= true*/)
DirectExpire(reset);
}
MovementSlot MotionMaster::GetCurrentSlot() const
{
if (empty())
return MOTION_SLOT_ACTIVE;
if (topOrNull())
return MOTION_SLOT_IDLE;
return MAX_MOTION_SLOT;
}
MovementGeneratorType MotionMaster::GetCurrentMovementGeneratorType() const
{
if (empty())