diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-02 01:22:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-02 01:22:00 +0100 |
commit | a72e71f26583d34d6431d9aa9dc188185adc919c (patch) | |
tree | f57ea5358f5bbc8595a9a23e626e2920778625f7 /src/control/Script.cpp | |
parent | fixed bullion run (diff) | |
parent | fixed ai bug (diff) | |
download | re3-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 |
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r-- | src/control/Script.cpp | 2 |
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; } |