summaryrefslogtreecommitdiffstats
path: root/src/control/CarAI.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-10-13 19:12:15 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-10-13 19:12:15 +0200
commit2411558bab50929cbc067c9f4083f24ad1af65c9 (patch)
tree2ba5b7879c46cd4106305e010f53fb065b3da258 /src/control/CarAI.cpp
parent400-499 (diff)
downloadre3-2411558bab50929cbc067c9f4083f24ad1af65c9.tar
re3-2411558bab50929cbc067c9f4083f24ad1af65c9.tar.gz
re3-2411558bab50929cbc067c9f4083f24ad1af65c9.tar.bz2
re3-2411558bab50929cbc067c9f4083f24ad1af65c9.tar.lz
re3-2411558bab50929cbc067c9f4083f24ad1af65c9.tar.xz
re3-2411558bab50929cbc067c9f4083f24ad1af65c9.tar.zst
re3-2411558bab50929cbc067c9f4083f24ad1af65c9.zip
Diffstat (limited to 'src/control/CarAI.cpp')
-rw-r--r--src/control/CarAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp
index 10083059..e8ce9ed4 100644
--- a/src/control/CarAI.cpp
+++ b/src/control/CarAI.cpp
@@ -250,7 +250,7 @@ void CCarAI::UpdateCarAI(CVehicle* pVehicle)
else if (distance > 35.0f && !pVehicle->AutoPilot.m_bIgnorePathfinding && (CTimer::GetFrameCounter() & 7) == 0) {
pVehicle->AutoPilot.m_nTempAction = TEMPACT_NONE;
pVehicle->AutoPilot.m_nCarMission = (CCarCtrl::JoinCarWithRoadSystemGotoCoors(pVehicle, pVehicle->AutoPilot.m_vecDestinationCoors, true)) ?
- MISSION_GOTOCOORDS_STRAIGHT : MISSION_GOTOCOORDS;
+ MISSION_GOTO_COORDS_STRAIGHT_ACCURATE : MISSION_GOTOCOORDS_ACCURATE;
}
break;
}