from practicing: aiplayer onstuck correction

This commit is contained in:
AzaezelX 2020-07-10 12:15:46 -05:00
parent 55c95a6146
commit 1619b7cd23

View file

@ -716,12 +716,11 @@ void AIPlayer::onReachDestination()
*/ */
void AIPlayer::onStuck() void AIPlayer::onStuck()
{ {
throwCallback("onMoveStuck");
#ifdef TORQUE_NAVIGATION_ENABLED #ifdef TORQUE_NAVIGATION_ENABLED
if(!mPathData.path.isNull()) if(!mPathData.path.isNull())
repath(); repath();
else
#endif #endif
throwCallback("onMoveStuck");
} }
#ifdef TORQUE_NAVIGATION_ENABLED #ifdef TORQUE_NAVIGATION_ENABLED