summaryrefslogtreecommitdiffstats
path: root/src/core/EventList.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-09-30 01:44:02 +0200
committereray orçunus <erayorcunus@gmail.com>2020-09-30 01:44:02 +0200
commitf740588780897a2d9d0b29724d617b0eaa9b5025 (patch)
tree2d9bb7a9ae9d10a2ebfceba7179b47c249b3e19a /src/core/EventList.cpp
parentPopulation and many small classes done, mouse AUX buttons, Frontend, Hud, fixes (diff)
parentMerge remote-tracking branch 'origin/master' into miami (diff)
downloadre3-f740588780897a2d9d0b29724d617b0eaa9b5025.tar
re3-f740588780897a2d9d0b29724d617b0eaa9b5025.tar.gz
re3-f740588780897a2d9d0b29724d617b0eaa9b5025.tar.bz2
re3-f740588780897a2d9d0b29724d617b0eaa9b5025.tar.lz
re3-f740588780897a2d9d0b29724d617b0eaa9b5025.tar.xz
re3-f740588780897a2d9d0b29724d617b0eaa9b5025.tar.zst
re3-f740588780897a2d9d0b29724d617b0eaa9b5025.zip
Diffstat (limited to 'src/core/EventList.cpp')
-rw-r--r--src/core/EventList.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/EventList.cpp b/src/core/EventList.cpp
index da0a5967..7eb1e186 100644
--- a/src/core/EventList.cpp
+++ b/src/core/EventList.cpp
@@ -230,7 +230,11 @@ CEventList::ReportCrimeForEvent(eEventType type, size_t crimeId, bool copsDontCa
if(crime == CRIME_NONE)
return;
+#ifdef FIX_BUGS
+ CVector playerPedCoors = FindPlayerCoors();
+#else
CVector playerPedCoors = FindPlayerPed()->GetPosition();
+#endif
CVector playerCoors = FindPlayerCoors();
if(CWanted::WorkOutPolicePresence(playerCoors, 14.0f) != 0 ||