瀏覽代碼

Merge pull request #242 from Azaezel/alpha40_stuckSpots

from practicing: aiplayer onstuck correction
Brian Roberts 5 年之前
父節點
當前提交
ef6137ac6f
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Engine/source/T3D/aiPlayer.cpp

+ 1 - 2
Engine/source/T3D/aiPlayer.cpp

@@ -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