summaryrefslogtreecommitdiff
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-13 13:29:17 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-13 13:29:17 +0300
commit509d57edcb4e60be87548b202b33cef508f11fd1 (patch)
tree2b8586cff3c2cebcc807eaf0d4c287ef96ebfe62 /src/control
parent7aeac06fdb9bd43addad145cad1763dc58063624 (diff)
car control and cranes fixes
Diffstat (limited to 'src/control')
-rw-r--r--src/control/CarCtrl.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index d6ccc8bb..cd86ce4c 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -461,8 +461,6 @@ CCarCtrl::GenerateOneRandomCar()
directionCurrentLinkY = pCurrentLink->GetDirY() * pVehicle->AutoPilot.m_nCurrentDirection;
directionNextLinkX = pNextLink->GetDirX() * pVehicle->AutoPilot.m_nNextDirection;
directionNextLinkY = pNextLink->GetDirY() * pVehicle->AutoPilot.m_nNextDirection;
- pCurNode = &ThePaths.m_pathNodes[pVehicle->AutoPilot.m_nCurrentRouteNode];
- pNextNode = &ThePaths.m_pathNodes[pVehicle->AutoPilot.m_nNextRouteNode];
}
#else
float currentPathLinkForwardX = pVehicle->AutoPilot.m_nCurrentDirection * ThePaths.m_carPathLinks[pVehicle->AutoPilot.m_nCurrentPathNodeInfo].GetDirX();