diff options
author | erorcun <erayorcunus@gmail.com> | 2020-10-04 21:12:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 21:12:57 +0200 |
commit | fae97f29c4f14cba0d37695d67e959defbe7ea75 (patch) | |
tree | 32195602f9ba72f90ff2dbe4a2a1447f339012e1 /src/control | |
parent | Load and write our settings in re3.ini & fixes (diff) | |
parent | small fix (diff) | |
download | re3-fae97f29c4f14cba0d37695d67e959defbe7ea75.tar re3-fae97f29c4f14cba0d37695d67e959defbe7ea75.tar.gz re3-fae97f29c4f14cba0d37695d67e959defbe7ea75.tar.bz2 re3-fae97f29c4f14cba0d37695d67e959defbe7ea75.tar.lz re3-fae97f29c4f14cba0d37695d67e959defbe7ea75.tar.xz re3-fae97f29c4f14cba0d37695d67e959defbe7ea75.tar.zst re3-fae97f29c4f14cba0d37695d67e959defbe7ea75.zip |
Diffstat (limited to 'src/control')
-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 5a2def05..76ee47b0 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -2578,7 +2578,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; |