From 3f7ee3a806d965fae70fd98f2cd1af13a2e4cf0b Mon Sep 17 00:00:00 2001 From: Cheng Hann Gan Date: Fri, 15 Oct 2021 18:30:33 -0400 Subject: Decomped entityExists() (#64) --- src/code_8057824_1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/code_8057824_1.c') diff --git a/src/code_8057824_1.c b/src/code_8057824_1.c index ec518d7..3426921 100644 --- a/src/code_8057824_1.c +++ b/src/code_8057824_1.c @@ -313,7 +313,7 @@ void sub_808919C(); void sub_8088D30(void); extern void sub_8083F14(); -extern u8 sub_80450E0(struct DungeonEntity *); +extern u8 entityExists(struct DungeonEntity *); extern u8 sub_8086AE4(u32); @@ -1985,7 +1985,7 @@ void sub_8089788(struct DungeonEntity *param_1, u8 param_2, s32 param_3) for(iVar3 = 0; iVar3 < 0x10; iVar3++) { iVar2 = gDungeonGlobalData->wildPokemon[iVar3]; - if ((sub_80450E0(iVar2) != '\0') && (iVar2 != param_1) && (iVar2->entityData->clientFlags == param_2)) { + if ((entityExists(iVar2) != '\0') && (iVar2 != param_1) && (iVar2->entityData->clientFlags == param_2)) { return; } } -- cgit v1.2.3