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:
1 parent
6ad66f9cfc
commit
9f39c218db
3 files changed
+13
-1
No files matched your search
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user