Skip to content

Commit

Permalink
Match init_hud_element_list
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf authored and marijnvdwerf committed Jul 31, 2023
1 parent 58d9fab commit 126eb89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 78 deletions.
12 changes: 9 additions & 3 deletions src/hud_element.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,12 +662,19 @@ void hud_element_clear_cache(void) {
}

#if VERSION_PAL
INCLUDE_ASM(void, "hud_element", init_hud_element_list);
#else
extern Addr D_80200000;
#endif

void init_hud_element_list(void) {
if (!gGameStatusPtr->isBattle) {
if (gHudElementCacheBufferBattle != NULL) {
#if VERSION_PAL
if (gHudElementCacheBufferBattle != &D_80200000) {
general_heap_free(gHudElementCacheBufferBattle);
}
#else
general_heap_free(gHudElementCacheBufferBattle);
#endif
gHudElementCacheBufferBattle = NULL;
}

Expand All @@ -687,7 +694,6 @@ void init_hud_element_list(void) {
gHudElementsNumber = 0;
D_80159180 = 0;
}
#endif

void func_801413F8(void) {
set_cam_viewport(CAM_3, 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1);
Expand Down
75 changes: 0 additions & 75 deletions ver/pal/asm/nonmatchings/hud_element/init_hud_element_list.s

This file was deleted.

0 comments on commit 126eb89

Please sign in to comment.