From b34067cb0bdad6e63e830db22a17c5436c8ee9ca Mon Sep 17 00:00:00 2001 From: Tal Hayon Date: Sat, 29 Jan 2022 15:43:09 +0200 Subject: Use PlayerActions enum in several places --- src/object/mask.c | 2 +- src/object/object6A.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/object') diff --git a/src/object/mask.c b/src/object/mask.c index 5d94288f..17625019 100644 --- a/src/object/mask.c +++ b/src/object/mask.c @@ -58,7 +58,7 @@ void sub_080929A4(Entity* this) { // Probably related to knocking it down void sub_08092A94(Entity* this) { // Check for the first frame of bonking animation - if (gPlayerEntity.action != 6) { + if (gPlayerEntity.action != PLAYER_BOUNCE) { return; } diff --git a/src/object/object6A.c b/src/object/object6A.c index 29dcb2ef..a186efd2 100644 --- a/src/object/object6A.c +++ b/src/object/object6A.c @@ -413,7 +413,7 @@ void sub_08094FA8(Object6AEntity* this) { } break; case 3: - if (gPlayerEntity.action != 12) { + if (gPlayerEntity.action != PLAYER_EMPTYBOTTLE) { super->action = 4; #ifndef EU if (!CheckGlobalFlag(BIN_DOGFOOD)) { -- cgit v1.2.3