diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-04-15 18:19:45 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-04-15 18:19:45 +0200 |
commit | 4da1879975ef28cb7f406166d62d154d03ef47d2 (patch) | |
tree | 42f2049c82fdd99386ce7346294482ed52940520 /src/core/Collision.h | |
parent | fix CTheCarGenerators::SaveAllCarGenerators (diff) | |
download | re3-4da1879975ef28cb7f406166d62d154d03ef47d2.tar re3-4da1879975ef28cb7f406166d62d154d03ef47d2.tar.gz re3-4da1879975ef28cb7f406166d62d154d03ef47d2.tar.bz2 re3-4da1879975ef28cb7f406166d62d154d03ef47d2.tar.lz re3-4da1879975ef28cb7f406166d62d154d03ef47d2.tar.xz re3-4da1879975ef28cb7f406166d62d154d03ef47d2.tar.zst re3-4da1879975ef28cb7f406166d62d154d03ef47d2.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); |