mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-26 05:35:40 +00:00
fixed COMMAND_IS_PLAYER_IN_AREA_3D
This commit is contained in:
parent
d360229b5b
commit
b14be6697b
1 changed files with 2 additions and 2 deletions
|
@ -1295,9 +1295,9 @@ int8 CRunningScript::ProcessCommandsFrom0To99(int32 command)
|
|||
y2 = *(float*)&ScriptParams[5];
|
||||
z2 = *(float*)&ScriptParams[6];
|
||||
if (ped->bInVehicle)
|
||||
UpdateCompareFlag(ped->IsWithinArea(x1, y1, z1, x2, y2, z2));
|
||||
else
|
||||
UpdateCompareFlag(ped->m_pMyVehicle->IsWithinArea(x1, y1, z1, x2, y2, z2));
|
||||
else
|
||||
UpdateCompareFlag(ped->IsWithinArea(x1, y1, z1, x2, y2, z2));
|
||||
if (!ScriptParams[7])
|
||||
return 0;
|
||||
CTheScripts::HighlightImportantArea((uint32)this + m_nIp, x1, y1, x2, y2, -100.0f);
|
||||
|
|
Loading…
Reference in a new issue