From aa939e0955ec683efb5dd963430eace695a26af9 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Sun, 6 Mar 2022 14:41:40 -0600 Subject: All saving functions decomped - poke_sub_4 was determined to be Dungeon Index/Floor - Clean up code that references these functions --- src/friend_area_action_menu_1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/friend_area_action_menu_1.c') diff --git a/src/friend_area_action_menu_1.c b/src/friend_area_action_menu_1.c index 1abd973..3f1bb5f 100644 --- a/src/friend_area_action_menu_1.c +++ b/src/friend_area_action_menu_1.c @@ -79,7 +79,7 @@ void sub_8027A5C(void) } static inline bool8 sub_8027A78_sub(void) { - if (gUnknown_203B2BC->unk18->unk4.unk4 == 0x44 || gUnknown_203B2BC->unk18->unk4.unk4 == 0x45) + if (gUnknown_203B2BC->unk18->unk4.dungeonIndex == 0x44 || gUnknown_203B2BC->unk18->unk4.dungeonIndex == 0x45) return TRUE; else return FALSE; @@ -270,7 +270,7 @@ u32 sub_8027D9C(struct PokemonStruct *r0) if(r0->unk2 == 0) { var1 = 0; - if(r0->unk4.unk4 == 0x41) + if(r0->unk4.dungeonIndex == 0x41) var1 = 1; if(var1 != 0) { @@ -291,7 +291,7 @@ u32 sub_8027DCC(struct PokemonStruct *r0) if(r0->unk2 == 0) { var1 = 0; - if(r0->unk4.unk4 == 0x41) + if(r0->unk4.dungeonIndex == 0x41) var1 = 1; if(var1 != 0) { -- cgit v1.2.3