summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-10 00:26:12 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-10 00:26:12 +0200
commit35c41208f5910ccb3d4f3aeed3980434cb4360b3 (patch)
treed49aa0fdb827960dbc3cc4c016267f6244828e61 /src/control
parentMerge pull request #528 from Nick007J/miami (diff)
parentSmall unification (diff)
downloadre3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar.gz
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar.bz2
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar.lz
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar.xz
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar.zst
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.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 88fc92f3..cf8e63f4 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -1904,7 +1904,7 @@ void CCarCtrl::PickNextNodeRandomly(CVehicle* pVehicle)
pCurLink->GetY() - ((pVehicle->AutoPilot.m_nCurrentLane + pCurLink->OneWayLaneOffset()) * LANE_WIDTH) * currentPathLinkForwardX,
0.0f);
CVector positionOnNextLinkIncludingLane(
- pNextLink->GetX() + ((pVehicle->AutoPilot.m_nNextLane + pNextLink->OneWayLaneOffset()) * LANE_WIDTH),
+ pNextLink->GetX() + ((pVehicle->AutoPilot.m_nNextLane + pNextLink->OneWayLaneOffset()) * LANE_WIDTH) * nextPathLinkForwardY,
pNextLink->GetY() - ((pVehicle->AutoPilot.m_nNextLane + pNextLink->OneWayLaneOffset()) * LANE_WIDTH) * nextPathLinkForwardX,
0.0f);
#endif