From b14be6697bd609bfd957576047754cabd8cd3019 Mon Sep 17 00:00:00 2001 From: aap Date: Wed, 10 Jul 2019 14:00:10 +0200 Subject: fixed COMMAND_IS_PLAYER_IN_AREA_3D --- src/control/Script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 8e9033b6..b50c101e 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -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); -- cgit v1.2.3