summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-11-16 10:28:20 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-11-16 10:28:20 +0100
commit15b7126243a28f1d93b633e13d8ab0e437bc2f5c (patch)
treea94b3c95945c672f751ddeba9713c5afa2e3f27a
parentsmall fix (diff)
downloadre3-15b7126243a28f1d93b633e13d8ab0e437bc2f5c.tar
re3-15b7126243a28f1d93b633e13d8ab0e437bc2f5c.tar.gz
re3-15b7126243a28f1d93b633e13d8ab0e437bc2f5c.tar.bz2
re3-15b7126243a28f1d93b633e13d8ab0e437bc2f5c.tar.lz
re3-15b7126243a28f1d93b633e13d8ab0e437bc2f5c.tar.xz
re3-15b7126243a28f1d93b633e13d8ab0e437bc2f5c.tar.zst
re3-15b7126243a28f1d93b633e13d8ab0e437bc2f5c.zip
-rw-r--r--src/control/CarCtrl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index f0643b5e..19f2c628 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -2122,6 +2122,7 @@ bool CCarCtrl::PickNextNodeToFollowPath(CVehicle* pVehicle)
pVehicle, nil, 999999.9f, -1);
if (pVehicle->AutoPilot.m_nPathFindNodesCount < 2)
return true;
+ pVehicle->AutoPilot.RemoveOnePathNode();
}
CPathNode* pNextPathNode = &ThePaths.m_pathNodes[pVehicle->AutoPilot.m_nNextRouteNode];
CCarPathLink* pCurLink = &ThePaths.m_carPathLinks[pVehicle->AutoPilot.m_nNextPathNodeInfo];