summaryrefslogtreecommitdiffstats
path: root/src/core/Collision.h
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-04-15 18:22:28 +0200
committerGitHub <noreply@github.com>2020-04-15 18:22:28 +0200
commit647cfbfd4554e975825fa48e1a87ea286704fc21 (patch)
treee3d7a2d0164ab5c0a7bc19617d2bbfa25bc1e2a1 /src/core/Collision.h
parentfixed bug and weirdness in CHeli (diff)
parentMany fixes and cleanup (diff)
downloadre3-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.h11
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);