summaryrefslogtreecommitdiffstats
path: root/src/core/Collision.cpp
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.cpp
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.cpp')
-rw-r--r--src/core/Collision.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/Collision.cpp b/src/core/Collision.cpp
index c884f751..85145e86 100644
--- a/src/core/Collision.cpp
+++ b/src/core/Collision.cpp
@@ -31,8 +31,8 @@ enum Direction
DIR_Z_NEG,
};
-eLevelName &CCollision::ms_collisionInMemory = *(eLevelName*)0x8F6250;
-CLinkList<CColModel*> &CCollision::ms_colModelCache = *(CLinkList<CColModel*>*)0x95CB58;
+eLevelName CCollision::ms_collisionInMemory;
+CLinkList<CColModel*> CCollision::ms_colModelCache;
void
CCollision::Init(void)
@@ -1355,6 +1355,7 @@ CCollision::ProcessColModels(const CMatrix &matrixA, CColModel &modelA,
modelB.triangles[aTriangleIndicesB[j]],
modelB.trianglePlanes[aTriangleIndicesB[j]],
spherepoints[numCollisions], coldist);
+
if(hasCollided)
numCollisions++;
}