diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-16 10:22:55 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-16 10:22:55 +0100 |
commit | 0ac621588eac266ad20e2809462c03d0e65d86b3 (patch) | |
tree | ab05ff5f09e63a7d93ab9b2c07a1fb6c9e9eb752 | |
parent | change gl caps.dat constants (diff) | |
download | re3-0ac621588eac266ad20e2809462c03d0e65d86b3.tar re3-0ac621588eac266ad20e2809462c03d0e65d86b3.tar.gz re3-0ac621588eac266ad20e2809462c03d0e65d86b3.tar.bz2 re3-0ac621588eac266ad20e2809462c03d0e65d86b3.tar.lz re3-0ac621588eac266ad20e2809462c03d0e65d86b3.tar.xz re3-0ac621588eac266ad20e2809462c03d0e65d86b3.tar.zst re3-0ac621588eac266ad20e2809462c03d0e65d86b3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/CarCtrl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index 781c8799..f0643b5e 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -2120,7 +2120,7 @@ bool CCarCtrl::PickNextNodeToFollowPath(CVehicle* pVehicle) pVehicle->AutoPilot.m_vecDestinationCoors, pVehicle->AutoPilot.m_aPathFindNodesInfo, &pVehicle->AutoPilot.m_nPathFindNodesCount, NUM_PATH_NODES_IN_AUTOPILOT, pVehicle, nil, 999999.9f, -1); - if (pVehicle->AutoPilot.m_nPathFindNodesCount < 1) + if (pVehicle->AutoPilot.m_nPathFindNodesCount < 2) return true; } CPathNode* pNextPathNode = &ThePaths.m_pathNodes[pVehicle->AutoPilot.m_nNextRouteNode]; |