From 9d52f4e464e67fd6d316dc03c1d41c9c22fd4597 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Mon, 27 Jan 2025 08:21:09 -0800 Subject: [PATCH] address review comments --- src/code_8069D4C.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/code_8069D4C.c b/src/code_8069D4C.c index a43475ce8..858770282 100644 --- a/src/code_8069D4C.c +++ b/src/code_8069D4C.c @@ -1,4 +1,5 @@ #include "global.h" +#include "constants/status.h" #include "code_806CD90.h" #include "code_8077274_1.h" #include "dungeon_ai_targeting.h" @@ -31,10 +32,10 @@ void sub_80694C0(Entity *target,s32 x,int y,char param_4) tile = GetTileMut(x,y); info = GetEntInfo(target); - if ((u8)((info->frozenClassStatus).status - 3) < 2) { + if (info->frozenClassStatus.status == STATUS_WRAP || info->frozenClassStatus.status == STATUS_WRAPPED) { sub_8076CB4(info->unk9C); } - if ((((info->frozenClassStatus).status == 7) || ((info->frozenClassStatus).status == 5)) || ((info->frozenClassStatus).status == 2)) { + if (info->frozenClassStatus.status == STATUS_CONSTRICTION || info->frozenClassStatus.status == STATUS_INGRAIN || info->frozenClassStatus.status == STATUS_SHADOW_HOLD) { EndFrozenClassStatus(target,target); } if ((x != (target->pos).x) || (y != (target->pos).y)) { @@ -89,7 +90,7 @@ void sub_80695EC(Entity *param_1,int x,int y) EntityInfo *info; info = GetEntInfo(param_1); - if ((u8)((info->frozenClassStatus).status - 3) < 2) { + if (info->frozenClassStatus.status == STATUS_WRAP || info->frozenClassStatus.status == STATUS_WRAPPED) { sub_8076CB4(info->unk9C); } if ((x != (param_1->pos).x) || (y != (param_1->pos).y)) {