summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-02 01:22:00 +0100
committerGitHub <noreply@github.com>2020-02-02 01:22:00 +0100
commita72e71f26583d34d6431d9aa9dc188185adc919c (patch)
treef57ea5358f5bbc8595a9a23e626e2920778625f7
parentfixed bullion run (diff)
parentfixed ai bug (diff)
downloadre3-a72e71f26583d34d6431d9aa9dc188185adc919c.tar
re3-a72e71f26583d34d6431d9aa9dc188185adc919c.tar.gz
re3-a72e71f26583d34d6431d9aa9dc188185adc919c.tar.bz2
re3-a72e71f26583d34d6431d9aa9dc188185adc919c.tar.lz
re3-a72e71f26583d34d6431d9aa9dc188185adc919c.tar.xz
re3-a72e71f26583d34d6431d9aa9dc188185adc919c.tar.zst
re3-a72e71f26583d34d6431d9aa9dc188185adc919c.zip
-rw-r--r--src/control/Script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 117d8b54..392dc918 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -5625,7 +5625,7 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
pVehicle->AutoPilot.m_nCarMission = MISSION_GOTOCOORDS_ACCURATE;
pVehicle->m_status = STATUS_PHYSICS;
pVehicle->bEngineOn = true;
- pVehicle->AutoPilot.m_nCruiseSpeed = min(6, pVehicle->AutoPilot.m_nCruiseSpeed);
+ pVehicle->AutoPilot.m_nCruiseSpeed = max(6, pVehicle->AutoPilot.m_nCruiseSpeed);
pVehicle->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
return 0;
}