Core/Movement: implement cyclic spline database support

This commit is contained in:
Ovahlord committed 2020-09-21 00:32:55 +02:00
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();
}