2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:07:43 +00:00

CActorContraption fixes, better CMake dependency handling

This commit is contained in:
Jack Andersen
2019-06-11 16:05:17 -10:00
parent 77d0ef942d
commit e218b8aeb5
295 changed files with 942 additions and 2219 deletions

View File

@@ -34,7 +34,7 @@ bool CCollisionPrimitive::InternalCollide(const CInternalCollisionStructure& col
u32 idx1 = collision.GetRight().GetPrim().GetTableIndex();
ComparisonFunc func;
if (idx0 == -1 || idx1 == -1) {
if (idx0 == UINT32_MAX || idx1 == UINT32_MAX) {
sNullCollider = nullptr;
func = sNullCollider;
} else {
@@ -48,7 +48,7 @@ bool CCollisionPrimitive::InternalCollide(const CInternalCollisionStructure& col
return func(collision, list);
}
if (idx0 == -1 || idx1 == -1) {
if (idx0 == UINT32_MAX || idx1 == UINT32_MAX) {
sNullCollider = nullptr;
func = sNullCollider;
} else {
@@ -81,7 +81,7 @@ bool CCollisionPrimitive::InternalCollideBoolean(const CInternalCollisionStructu
u32 idx1 = collision.GetRight().GetPrim().GetTableIndex();
BooleanComparisonFunc func;
if (idx0 == -1 || idx1 == -1) {
if (idx0 == UINT32_MAX || idx1 == UINT32_MAX) {
sNullBooleanCollider = nullptr;
func = sNullBooleanCollider;
} else {
@@ -95,7 +95,7 @@ bool CCollisionPrimitive::InternalCollideBoolean(const CInternalCollisionStructu
return func(collision);
}
if (idx0 == -1 || idx1 == -1) {
if (idx0 == UINT32_MAX || idx1 == UINT32_MAX) {
sNullBooleanCollider = nullptr;
func = sNullBooleanCollider;
} else {
@@ -125,7 +125,7 @@ bool CCollisionPrimitive::InternalCollideMoving(const CInternalCollisionStructur
u32 idx1 = collision.GetRight().GetPrim().GetTableIndex();
MovingComparisonFunc func;
if (idx0 == -1 || idx1 == -1) {
if (idx0 == UINT32_MAX || idx1 == UINT32_MAX) {
sNullMovingCollider = nullptr;
func = sNullMovingCollider;
} else {