1
0
mirror of https://github.com/zeldaret/oot.git synced 2024-09-21 04:24:43 +00:00

Small collision_check improvements (#1172)

* COLSHAPE_INVALID -> COLSHAPE_MAX, variable names

* Marked suggestions

Co-authored-by: mzxrules <mzxrules@gmail.com>

* true/false, SAC_ON define for sacFlags

* SAC_ON -> SAC_ENABLE, intersection -> hitPos, revert ARRAY_COUNT use in CollisionCheck_ApplyDamage

Co-authored-by: mzxrules <mzxrules@gmail.com>
This commit is contained in:
Tharo 2022-03-19 23:33:47 +00:00 committed by GitHub
parent b2a3fb2f7f
commit a7fa906841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 468 additions and 468 deletions

View File

@ -252,7 +252,7 @@ typedef enum {
/* 1 */ COLSHAPE_CYLINDER,
/* 2 */ COLSHAPE_TRIS,
/* 3 */ COLSHAPE_QUAD,
/* 4 */ COLSHAPE_INVALID
/* 4 */ COLSHAPE_MAX
} ColliderShape;
/**
@ -272,6 +272,8 @@ typedef enum {
/* 7 */ ELEMTYPE_UNK7
} ElementType;
#define SAC_ENABLE (1 << 0)
#define AT_NONE 0 // No flags set. Cannot have AT collisions when set as AT
#define AT_ON (1 << 0) // Can have AT collisions when set as AT
#define AT_HIT (1 << 1) // Had an AT collision

File diff suppressed because it is too large Load Diff