summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-02 20:30:16 +0100
committeraap <aap@papnet.eu>2021-01-02 20:30:16 +0100
commit57677b7b55e6204c0b78db935d696c21e880f0e6 (patch)
tree964a03852bdd8a697c881d90b72d2eecf79868e9 /src/control
parent"clarification" of handling code (diff)
downloadre3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar
re3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar.gz
re3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar.bz2
re3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar.lz
re3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar.xz
re3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar.zst
re3-57677b7b55e6204c0b78db935d696c21e880f0e6.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index c022cfe8..4fdd6fd0 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -4032,9 +4032,9 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
car->AutoPilot.m_nCruiseSpeed = *(float*)&ScriptParams[1];
if (missionRetryScriptIndex == 40 && car->GetModelIndex() == MI_CHEETAH) // Turismo
car->AutoPilot.m_nCruiseSpeed = 8 * car->AutoPilot.m_nCruiseSpeed / 10;
- car->AutoPilot.m_nCruiseSpeed = Min(car->AutoPilot.m_nCruiseSpeed, 60.0f * car->pHandling->Transmission.fUnkMaxVelocity);
+ car->AutoPilot.m_nCruiseSpeed = Min(car->AutoPilot.m_nCruiseSpeed, 60.0f * car->pHandling->Transmission.fMaxCruiseVelocity);
#else
- car->AutoPilot.m_nCruiseSpeed = Min(*(float*)&ScriptParams[1], 60.0f * car->pHandling->Transmission.fUnkMaxVelocity);
+ car->AutoPilot.m_nCruiseSpeed = Min(*(float*)&ScriptParams[1], 60.0f * car->pHandling->Transmission.fMaxCruiseVelocity);
#endif
return 0;
}