diff options
author | erorcun <erayorcunus@gmail.com> | 2020-04-15 18:22:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 18:22:28 +0200 |
commit | 647cfbfd4554e975825fa48e1a87ea286704fc21 (patch) | |
tree | e3d7a2d0164ab5c0a7bc19617d2bbfa25bc1e2a1 /src/core/Collision.h | |
parent | fixed bug and weirdness in CHeli (diff) | |
parent | Many fixes and cleanup (diff) | |
download | re3-647cfbfd4554e975825fa48e1a87ea286704fc21.tar re3-647cfbfd4554e975825fa48e1a87ea286704fc21.tar.gz re3-647cfbfd4554e975825fa48e1a87ea286704fc21.tar.bz2 re3-647cfbfd4554e975825fa48e1a87ea286704fc21.tar.lz re3-647cfbfd4554e975825fa48e1a87ea286704fc21.tar.xz re3-647cfbfd4554e975825fa48e1a87ea286704fc21.tar.zst re3-647cfbfd4554e975825fa48e1a87ea286704fc21.zip |
Diffstat (limited to 'src/core/Collision.h')
-rw-r--r-- | src/core/Collision.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/Collision.h b/src/core/Collision.h index 1cbd1690..bdf51eb8 100644 --- a/src/core/Collision.h +++ b/src/core/Collision.h @@ -3,6 +3,13 @@ #include "templates.h" #include "Game.h" // for eLevelName +// If you spawn many tanks at once, you will see that collisions of two entity exceeds 32. +#ifdef FIX_BUGS +#define MAX_COLLISION_POINTS 64 +#else +#define MAX_COLLISION_POINTS 32 +#endif + struct CColSphere { CVector center; @@ -110,8 +117,8 @@ struct CColModel class CCollision { public: - static eLevelName &ms_collisionInMemory; - static CLinkList<CColModel*> &ms_colModelCache; + static eLevelName ms_collisionInMemory; + static CLinkList<CColModel*> ms_colModelCache; static void Init(void); static void Shutdown(void); |