diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-11 11:58:11 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-11 11:58:11 +0200 |
commit | 552f308e9e0a745852ca11064b6b31e16b115917 (patch) | |
tree | a88d109962a7de5594f3781fe1e388879936218c /src/control/CarCtrl.cpp | |
parent | Control updates (diff) | |
parent | Merge pull request #760 from Sergeanur/VC/TextFinish (diff) | |
download | re3-552f308e9e0a745852ca11064b6b31e16b115917.tar re3-552f308e9e0a745852ca11064b6b31e16b115917.tar.gz re3-552f308e9e0a745852ca11064b6b31e16b115917.tar.bz2 re3-552f308e9e0a745852ca11064b6b31e16b115917.tar.lz re3-552f308e9e0a745852ca11064b6b31e16b115917.tar.xz re3-552f308e9e0a745852ca11064b6b31e16b115917.tar.zst re3-552f308e9e0a745852ca11064b6b31e16b115917.zip |
Diffstat (limited to 'src/control/CarCtrl.cpp')
-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 7d2abce4..db7d7b66 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -3075,7 +3075,7 @@ void CCarCtrl::SwitchVehicleToRealPhysics(CVehicle* pVehicle) void CCarCtrl::JoinCarWithRoadSystem(CVehicle* pVehicle) { pVehicle->AutoPilot.m_nPrevRouteNode = pVehicle->AutoPilot.m_nCurrentRouteNode = pVehicle->AutoPilot.m_nNextRouteNode = 0; - pVehicle->AutoPilot.m_nCurrentRouteNode = pVehicle->AutoPilot.m_nPreviousPathNodeInfo = pVehicle->AutoPilot.m_nNextPathNodeInfo = 0; + pVehicle->AutoPilot.m_nCurrentPathNodeInfo = pVehicle->AutoPilot.m_nPreviousPathNodeInfo = pVehicle->AutoPilot.m_nNextPathNodeInfo = 0; int nodeId = ThePaths.FindNodeClosestToCoorsFavourDirection(pVehicle->GetPosition(), 0, pVehicle->GetForward().x, pVehicle->GetForward().y); CPathNode* pNode = &ThePaths.m_pathNodes[nodeId]; int prevNodeId = -1; |