mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-16 02:29:00 +00:00
Fix SET_BOAT_CRUISE_SPEED
This commit is contained in:
parent
0c581ce86a
commit
4f33668c88
1 changed files with 5 additions and 4 deletions
|
@ -5826,16 +5826,17 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
|
||||||
assert(pVehicle->m_vehType == VEHICLE_TYPE_BOAT);
|
assert(pVehicle->m_vehType == VEHICLE_TYPE_BOAT);
|
||||||
CBoat* pBoat = (CBoat*)pVehicle;
|
CBoat* pBoat = (CBoat*)pVehicle;
|
||||||
pBoat->AutoPilot.m_nCruiseSpeed = ScriptParams[1];
|
pBoat->AutoPilot.m_nCruiseSpeed = ScriptParams[1];
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
case COMMAND_GET_RANDOM_CHAR_IN_AREA:
|
case COMMAND_GET_RANDOM_CHAR_IN_AREA:
|
||||||
{
|
{
|
||||||
CollectParameters(&m_nIp, 4);
|
CollectParameters(&m_nIp, 4);
|
||||||
int ped_handle = -1;
|
int ped_handle = -1;
|
||||||
CVector pos = FindPlayerCoors();
|
CVector pos = FindPlayerCoors();
|
||||||
float x1 = *(float*)&ScriptParams[1];
|
float x1 = *(float*)&ScriptParams[0];
|
||||||
float y1 = *(float*)&ScriptParams[2];
|
float y1 = *(float*)&ScriptParams[1];
|
||||||
float x2 = *(float*)&ScriptParams[3];
|
float x2 = *(float*)&ScriptParams[2];
|
||||||
float y2 = *(float*)&ScriptParams[4];
|
float y2 = *(float*)&ScriptParams[3];
|
||||||
int i = CPools::GetPedPool()->GetSize();
|
int i = CPools::GetPedPool()->GetSize();
|
||||||
while (--i && ped_handle == -1){
|
while (--i && ped_handle == -1){
|
||||||
CPed* pPed = CPools::GetPedPool()->GetSlot(i);
|
CPed* pPed = CPools::GetPedPool()->GetSlot(i);
|
||||||
|
|
Loading…
Reference in a new issue