summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-10-04 21:12:57 +0200
committerGitHub <noreply@github.com>2020-10-04 21:12:57 +0200
commitfae97f29c4f14cba0d37695d67e959defbe7ea75 (patch)
tree32195602f9ba72f90ff2dbe4a2a1447f339012e1 /src/control
parentLoad and write our settings in re3.ini & fixes (diff)
parentsmall fix (diff)
downloadre3-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.cpp2
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;