summaryrefslogtreecommitdiffstats
path: root/src/control/CarCtrl.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-01-31 11:23:15 +0100
committerSergeanur <s.anureev@yandex.ua>2020-01-31 11:23:15 +0100
commit43bd2227a8e3be1e6d8c133acdfe27a1962e25e1 (patch)
treefee9bcb43054041fee538979c98f789dcb5242f1 /src/control/CarCtrl.cpp
parentRC toyz crashfix (diff)
downloadre3-43bd2227a8e3be1e6d8c133acdfe27a1962e25e1.tar
re3-43bd2227a8e3be1e6d8c133acdfe27a1962e25e1.tar.gz
re3-43bd2227a8e3be1e6d8c133acdfe27a1962e25e1.tar.bz2
re3-43bd2227a8e3be1e6d8c133acdfe27a1962e25e1.tar.lz
re3-43bd2227a8e3be1e6d8c133acdfe27a1962e25e1.tar.xz
re3-43bd2227a8e3be1e6d8c133acdfe27a1962e25e1.tar.zst
re3-43bd2227a8e3be1e6d8c133acdfe27a1962e25e1.zip
Diffstat (limited to 'src/control/CarCtrl.cpp')
-rw-r--r--src/control/CarCtrl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index cd657815..fe727f72 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -2541,7 +2541,7 @@ bool CCarCtrl::JoinCarWithRoadSystemGotoCoors(CVehicle* pVehicle, CVector vecTar
pVehicle->AutoPilot.m_aPathFindNodesInfo, &pVehicle->AutoPilot.m_nPathFindNodesCount);
if (pVehicle->AutoPilot.m_nPathFindNodesCount < 2){
pVehicle->AutoPilot.m_nPrevRouteNode = pVehicle->AutoPilot.m_nCurrentRouteNode = pVehicle->AutoPilot.m_nNextRouteNode = 0;
- return 1;
+ return true;
}
pVehicle->AutoPilot.m_nPrevRouteNode = 0;
pVehicle->AutoPilot.m_nCurrentRouteNode = pVehicle->AutoPilot.m_aPathFindNodesInfo[0] - ThePaths.m_pathNodes;
@@ -2550,7 +2550,7 @@ bool CCarCtrl::JoinCarWithRoadSystemGotoCoors(CVehicle* pVehicle, CVector vecTar
pVehicle->AutoPilot.RemoveOnePathNode();
FindLinksToGoWithTheseNodes(pVehicle);
pVehicle->AutoPilot.m_nNextLane = pVehicle->AutoPilot.m_nCurrentLane = 0;
- return 0;
+ return false;
}
void CCarCtrl::FindLinksToGoWithTheseNodes(CVehicle* pVehicle)