Core/Movement: implement cyclic spline database support
This commit is contained in:
1 parent
a7cd689bb8
commit
27c1fd6aee
13 files changed
+288
-37
No files matched your search
@@ -603,6 +603,8 @@ void SmartAI::JustReachedHome()
|
||||
{
|
||||
if (me->GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_IDLE) != WAYPOINT_MOTION_TYPE && me->GetWaypointPath())
|
||||
me->GetMotionMaster()->MovePath(me->GetWaypointPath(), true);
|
||||
else if (me->GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_IDLE) != CYCLIC_SPLINE_MOTION_TYPE && me->GetCyclicSplinePathId())
|
||||
me->GetMotionMaster()->MoveCyclicPath(me->GetCyclicSplinePathId());
|
||||
else
|
||||
me->ResumeMovement();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user