diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-14 11:49:03 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-14 11:49:03 +0200 |
commit | 41dbd754dee344c79207e0821df6bcc262f90726 (patch) | |
tree | e80d10adead90967de74b488a8253d2d3343be73 /src/core | |
parent | fixed policeDontCare (diff) | |
download | re3-41dbd754dee344c79207e0821df6bcc262f90726.tar re3-41dbd754dee344c79207e0821df6bcc262f90726.tar.gz re3-41dbd754dee344c79207e0821df6bcc262f90726.tar.bz2 re3-41dbd754dee344c79207e0821df6bcc262f90726.tar.lz re3-41dbd754dee344c79207e0821df6bcc262f90726.tar.xz re3-41dbd754dee344c79207e0821df6bcc262f90726.tar.zst re3-41dbd754dee344c79207e0821df6bcc262f90726.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/World.cpp | 2 | ||||
-rw-r--r-- | src/core/World.h | 1 | ||||
-rw-r--r-- | src/core/common.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp index a31f87a7..2b2ddd06 100644 --- a/src/core/World.cpp +++ b/src/core/World.cpp @@ -26,6 +26,8 @@ bool &CWorld::bSecondShift = *(bool*)0x95CD54; bool &CWorld::bForceProcessControl = *(bool*)0x95CD6C; bool &CWorld::bProcessCutsceneOnly = *(bool*)0x95CD8B; +WRAPPER void CWorld::RemoveReferencesToDeletedObject(CEntity*) { EAXJMP(0x4B3BF0); } + void CWorld::Add(CEntity *ent) { diff --git a/src/core/World.h b/src/core/World.h index d6063d70..a08a8cb9 100644 --- a/src/core/World.h +++ b/src/core/World.h @@ -99,6 +99,7 @@ public: static float FindGroundZForCoord(float x, float y); static float FindGroundZFor3DCoord(float x, float y, float z, bool *found); static float FindRoofZFor3DCoord(float x, float y, float z, bool *found); + static void RemoveReferencesToDeletedObject(CEntity*); static float GetSectorX(float f) { return ((f - WORLD_MIN_X)/SECTOR_SIZE_X); } static float GetSectorY(float f) { return ((f - WORLD_MIN_Y)/SECTOR_SIZE_Y); } diff --git a/src/core/common.h b/src/core/common.h index 4b7bcb0a..e57c59d8 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -178,3 +178,4 @@ void re3_assert(const char *expr, const char *filename, unsigned int lineno, con #define max(a, b) (((a) > (b)) ? (a) : (b)) #define min(a, b) (((a) < (b)) ? (a) : (b)) +#define abs(a) (((a) < 0) ? (-a) : (a)) |