Przeglądaj źródła

fix node following stopping early

AzaezelX 9 miesięcy temu
rodzic
commit
a10169accf
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      Engine/source/T3D/AI/AINavigation.cpp

+ 3 - 1
Engine/source/T3D/AI/AINavigation.cpp

@@ -170,8 +170,10 @@ void AINavigation::onReachDestination()
    }
    else
 #endif
+   {
       getCtrl()->throwCallback("onReachDestination");
-   getCtrl()->mMovement.mMoveState = AIController::ModeStop;
+      getCtrl()->mMovement.mMoveState = AIController::ModeStop;
+   }
 }
 
 bool AINavigation::setPathDestination(const Point3F& pos)