summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-02 12:47:16 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-02-02 12:47:16 +0100
commit2baacf0e9e2a93954b65f7a6b2e82900ed276332 (patch)
treeaa9eaaa034df9146020fe6ac1510b41d89b00de5 /src
parentscript 900-999 init (diff)
parentfixed SET_BOAT_CRUISE_SPEED (diff)
downloadre3-2baacf0e9e2a93954b65f7a6b2e82900ed276332.tar
re3-2baacf0e9e2a93954b65f7a6b2e82900ed276332.tar.gz
re3-2baacf0e9e2a93954b65f7a6b2e82900ed276332.tar.bz2
re3-2baacf0e9e2a93954b65f7a6b2e82900ed276332.tar.lz
re3-2baacf0e9e2a93954b65f7a6b2e82900ed276332.tar.xz
re3-2baacf0e9e2a93954b65f7a6b2e82900ed276332.tar.zst
re3-2baacf0e9e2a93954b65f7a6b2e82900ed276332.zip
Diffstat (limited to 'src')
-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 3998fc42..e5d4ba95 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -4406,7 +4406,7 @@ int8 CRunningScript::ProcessCommands500To599(int32 command)
CollectParameters(&m_nIp, 2);
CPlayerPed* pPed = CWorld::Players[ScriptParams[0]].m_pPed;
assert(pPed);
- if (ScriptParams[0]) {
+ if (ScriptParams[1]) {
pPed->m_pWanted->m_bIgnoredByCops = true;
CWorld::StopAllLawEnforcersInTheirTracks();
}
@@ -5828,7 +5828,7 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
assert(pVehicle);
assert(pVehicle->m_vehType == VEHICLE_TYPE_BOAT);
CBoat* pBoat = (CBoat*)pVehicle;
- pBoat->AutoPilot.m_nCruiseSpeed = ScriptParams[1];
+ pBoat->AutoPilot.m_nCruiseSpeed = *(float*)&ScriptParams[1];
return 0;
}
case COMMAND_GET_RANDOM_CHAR_IN_AREA: