summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-02 20:30:12 +0100
committeraap <aap@papnet.eu>2021-01-02 20:30:12 +0100
commit0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf (patch)
tree2c8584344263fd2f06b6cad574004f601e3adb2f /src/control/Script.cpp
parent"clarification" of handling code (diff)
downloadre3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar
re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar.gz
re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar.bz2
re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar.lz
re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar.xz
re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar.zst
re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.zip
Diffstat (limited to '')
-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 9856a8aa..63f1f2e1 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -3582,9 +3582,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;
}