summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-10 14:00:10 +0200
committeraap <aap@papnet.eu>2019-07-10 14:00:10 +0200
commitb14be6697bd609bfd957576047754cabd8cd3019 (patch)
tree31ed1c30a37f2692a2d15942e0529d19422ac246 /src/control/Script.cpp
parentfixed some stuff in frontend, badly broke others; disabled reversed frontend for the moment (diff)
downloadre3-b14be6697bd609bfd957576047754cabd8cd3019.tar
re3-b14be6697bd609bfd957576047754cabd8cd3019.tar.gz
re3-b14be6697bd609bfd957576047754cabd8cd3019.tar.bz2
re3-b14be6697bd609bfd957576047754cabd8cd3019.tar.lz
re3-b14be6697bd609bfd957576047754cabd8cd3019.tar.xz
re3-b14be6697bd609bfd957576047754cabd8cd3019.tar.zst
re3-b14be6697bd609bfd957576047754cabd8cd3019.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.cpp4
1 files 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);