diff options
author | aap <aap@papnet.eu> | 2020-08-07 10:18:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 10:18:46 +0200 |
commit | f14b1fba09fa992a67abe10ca12897fd9db386be (patch) | |
tree | 10651feff629e4d2b9e31727d35ed7b00bb02a06 /src/core/EventList.cpp | |
parent | Merge pull request #676 from aap/master (diff) | |
parent | Squeeze performance option, minor fixes (diff) | |
download | re3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar re3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar.gz re3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar.bz2 re3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar.lz re3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar.xz re3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar.zst re3-f14b1fba09fa992a67abe10ca12897fd9db386be.zip |
Diffstat (limited to 'src/core/EventList.cpp')
-rw-r--r-- | src/core/EventList.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/EventList.cpp b/src/core/EventList.cpp index 675040ea..8d69ba78 100644 --- a/src/core/EventList.cpp +++ b/src/core/EventList.cpp @@ -8,6 +8,7 @@ #include "Messages.h" #include "Text.h" #include "main.h" +#include "Accident.h" int32 CEventList::ms_nFirstFreeSlotIndex; CEvent gaEvent[NUMEVENTS]; @@ -63,6 +64,13 @@ CEventList::RegisterEvent(eEventType type, eEventEntity entityType, CEntity *ent int ref; bool copsDontCare; +#ifdef SQUEEZE_PERFORMANCE + if (type == EVENT_INJURED_PED) { + gAccidentManager.ReportAccident((CPed*)ent); + return; + } +#endif + copsDontCare = false; switch(entityType){ case EVENT_ENTITY_PED: |