diff --git a/include/common.h b/include/common.h index 5bfc3e6..43866fa 100644 --- a/include/common.h +++ b/include/common.h @@ -566,6 +566,9 @@ extern Gfx DISPLAY_LIST_80186D90[]; extern Gfx DISPLAY_LIST_8018FC80[]; extern Gfx DISPLAY_LIST_80186E70[]; extern Gfx DISPLAY_LIST_801869C8[]; +extern Gfx DISPLAY_LIST_801FCF70[]; +extern Gfx DISPLAY_LIST_801FCF98[]; + extern Vp obVpMinResolution; extern Vp obVpMaxResolution; diff --git a/src/overlay_145210/_ob_shivering_chalk.c b/src/overlay_145210/_ob_shivering_chalk.c index 7630e5f..bfe2b36 100644 --- a/src/overlay_145210/_ob_shivering_chalk.c +++ b/src/overlay_145210/_ob_shivering_chalk.c @@ -48,4 +48,19 @@ INCLUDE_ASM(const s32, "overlay_145210/_ob_shivering_chalk", func_overlay_145210 INCLUDE_ASM(const s32, "overlay_145210/_ob_shivering_chalk", func_overlay_145210_801F4C24_145E04); -INCLUDE_ASM(const s32, "overlay_145210/_ob_shivering_chalk", func_overlay_145210_801F4C38_145E18); +extern u8 D_overlay_145210_801FDA24_14EC04; + +/* 145E18 801F4C38 */ +void func_overlay_145210_801F4C38_145E18(s32 arg0) { + + if (arg0 != 0) { + if (D_overlay_145210_801FDA24_14EC04 != 1) { + D_overlay_145210_801FDA24_14EC04 = 1; + gSPDisplayList(obPtrDisplayList++, DISPLAY_LIST_801FCF70); + } + } else if (D_overlay_145210_801FDA24_14EC04 != 2) { + D_overlay_145210_801FDA24_14EC04 = 2; + gSPDisplayList(obPtrDisplayList++, DISPLAY_LIST_801FCF98); + } +} +