summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-02 01:21:21 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-02-02 01:21:21 +0100
commitc1dc66c63e7bbf49d594989ed1bea996687400f1 (patch)
treef57ea5358f5bbc8595a9a23e626e2920778625f7
parentfixed bullion run (diff)
downloadre3-c1dc66c63e7bbf49d594989ed1bea996687400f1.tar
re3-c1dc66c63e7bbf49d594989ed1bea996687400f1.tar.gz
re3-c1dc66c63e7bbf49d594989ed1bea996687400f1.tar.bz2
re3-c1dc66c63e7bbf49d594989ed1bea996687400f1.tar.lz
re3-c1dc66c63e7bbf49d594989ed1bea996687400f1.tar.xz
re3-c1dc66c63e7bbf49d594989ed1bea996687400f1.tar.zst
re3-c1dc66c63e7bbf49d594989ed1bea996687400f1.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;
}