Merge pull request #242 from Azaezel/alpha40_stuckSpots

from practicing: aiplayer onstuck correction
This commit is contained in:
Brian Roberts 2020-07-10 17:28:29 -05:00 committed by GitHub
commit ef6137ac6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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