summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-01-31 21:28:22 +0100
committerSergeanur <s.anureev@yandex.ua>2020-01-31 21:28:22 +0100
commit4f33668c881f9c604510591a0de7a99031add549 (patch)
tree90d4d57bde1eb33eab7176f106887e270d3762f1
parentFix boat component (diff)
downloadre3-4f33668c881f9c604510591a0de7a99031add549.tar
re3-4f33668c881f9c604510591a0de7a99031add549.tar.gz
re3-4f33668c881f9c604510591a0de7a99031add549.tar.bz2
re3-4f33668c881f9c604510591a0de7a99031add549.tar.lz
re3-4f33668c881f9c604510591a0de7a99031add549.tar.xz
re3-4f33668c881f9c604510591a0de7a99031add549.tar.zst
re3-4f33668c881f9c604510591a0de7a99031add549.zip
-rw-r--r--src/control/Script.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 7e3598b2..8c022765 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -5826,16 +5826,17 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
assert(pVehicle->m_vehType == VEHICLE_TYPE_BOAT);
CBoat* pBoat = (CBoat*)pVehicle;
pBoat->AutoPilot.m_nCruiseSpeed = ScriptParams[1];
+ return 0;
}
case COMMAND_GET_RANDOM_CHAR_IN_AREA:
{
CollectParameters(&m_nIp, 4);
int ped_handle = -1;
CVector pos = FindPlayerCoors();
- float x1 = *(float*)&ScriptParams[1];
- float y1 = *(float*)&ScriptParams[2];
- float x2 = *(float*)&ScriptParams[3];
- float y2 = *(float*)&ScriptParams[4];
+ float x1 = *(float*)&ScriptParams[0];
+ float y1 = *(float*)&ScriptParams[1];
+ float x2 = *(float*)&ScriptParams[2];
+ float y2 = *(float*)&ScriptParams[3];
int i = CPools::GetPedPool()->GetSize();
while (--i && ped_handle == -1){
CPed* pPed = CPools::GetPedPool()->GetSlot(i);