This commit is contained in:
Elliptic Ellipsis
2022-03-25 02:36:10 +00:00
parent fa1eb01528
commit b3a2644b4d
4 changed files with 4 additions and 5 deletions
-2
View File
@@ -5,8 +5,6 @@
#include "global.h"
#include "entity.h"
/** Collisions. */
typedef enum {
COL_NONE = 0x0,
+1 -1
View File
@@ -223,7 +223,7 @@ void sub_0803A09C(FlyingSkullEntity* this) {
GetNextFrame(super);
ProcessMovement2(super);
if (super->collisions != COL_NONE) {
if (super->collisions != COL_NONE) {
sub_0803A0E0(this);
}
}
+2 -1
View File
@@ -644,7 +644,8 @@ void OctorokBoss_Action1_ChargeAttack(OctorokBossEntity* this) {
if ((super->direction != 0) && (super->direction != 0x10)) {
knockbackCondition = ((super->collisions & (COL_EAST_ANY | COL_WEST_ANY)) != COL_NONE);
}
if (((super->direction != 0x18) && (super->direction != 8)) && (super->collisions & (COL_NORTH_ANY | COL_SOUTH_ANY))) {
if (((super->direction != 0x18) && (super->direction != 8)) &&
(super->collisions & (COL_NORTH_ANY | COL_SOUTH_ANY))) {
knockbackCondition = TRUE;
}
if (knockbackCondition) {
+1 -1
View File
@@ -1589,7 +1589,7 @@ bool32 IsTileCollision(const u8* layer, s32 x, s32 y, u32 collisionType) {
FilledAll,
FilledAll,
/**/
FilledNone
FilledNone,
};
if (tileType > 0x6f) {
return TRUE;