From bedf19c5230d4513b822bbdd50b302d7e557b257 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 2 Feb 2020 13:29:13 +0300 Subject: fixed police ignore bug --- src/control/Script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 392dc918..25b6d27c 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -4404,7 +4404,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(); } -- cgit v1.2.3 From b0e4f40f44433fbbaea8d456f37fb902b09d77dd Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 2 Feb 2020 14:09:39 +0300 Subject: fixed SET_BOAT_CRUISE_SPEED --- src/control/Script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 25b6d27c..a3d4a747 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -5826,7 +5826,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: -- cgit v1.2.3