summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-08 00:01:39 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-06-08 00:01:39 +0200
commit5ec46bcdfb06cdb6a2db2ae1f7c588a41d60d675 (patch)
treee9e741ec4753a91e62dccc136213f32b32ac15ec /src/control/Script.cpp
parentmore accurate code (diff)
parentCarCtrl fixes (diff)
downloadre3-5ec46bcdfb06cdb6a2db2ae1f7c588a41d60d675.tar
re3-5ec46bcdfb06cdb6a2db2ae1f7c588a41d60d675.tar.gz
re3-5ec46bcdfb06cdb6a2db2ae1f7c588a41d60d675.tar.bz2
re3-5ec46bcdfb06cdb6a2db2ae1f7c588a41d60d675.tar.lz
re3-5ec46bcdfb06cdb6a2db2ae1f7c588a41d60d675.tar.xz
re3-5ec46bcdfb06cdb6a2db2ae1f7c588a41d60d675.tar.zst
re3-5ec46bcdfb06cdb6a2db2ae1f7c588a41d60d675.zip
Diffstat (limited to '')
-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 5a1da380..4d784e4a 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -2268,7 +2268,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
car->AutoPilot.m_nCarMission = MISSION_GOTOCOORDS;
car->SetStatus(STATUS_PHYSICS);
car->bEngineOn = true;
- car->AutoPilot.m_nCruiseSpeed = Max(car->AutoPilot.m_nCruiseSpeed, 6);
+ car->AutoPilot.m_nCruiseSpeed = Max(1, car->AutoPilot.m_nCruiseSpeed);
car->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
return 0;
}