From 8d73439554beb2b4870b86159aa2e676357792b7 Mon Sep 17 00:00:00 2001 From: TakaRikka <38417346+TakaRikka@users.noreply.github.com> Date: Tue, 10 Dec 2024 08:46:19 -0800 Subject: tbox/camera/d_bg_w_kcol work and cleanup (#2262) * some camera/tbox cleanup * d_bg_w_kcol work * make item name enum better --- src/d/d_menu_item_explain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/d/d_menu_item_explain.cpp') diff --git a/src/d/d_menu_item_explain.cpp b/src/d/d_menu_item_explain.cpp index eafb323afb..9199981784 100644 --- a/src/d/d_menu_item_explain.cpp +++ b/src/d/d_menu_item_explain.cpp @@ -369,7 +369,7 @@ void dMenu_ItemExplain_c::open_init() { if (i_dStage_stagInfo_GetSaveTbl(dComIfGp_getStageStagInfo()) == 0x11) { s32 itemsObtained = 0; for (int i = 0; i < 3; i++) { - if (checkItemGet(i + L2_KEY_PIECES1, 1) != 0) { + if (checkItemGet(i + fpcNm_ITEM_L2_KEY_PIECES1, 1) != 0) { itemsObtained++; } } @@ -648,7 +648,7 @@ u8 dMenu_ItemExplain_c::openExplainDmap(u8 param_0, u8 param_1, u8 param_2, bool if (i_dStage_stagInfo_GetSaveTbl(dComIfGp_getStageStagInfo()) == 0x11 && param_0 == 0x26) { for (int i = 0; i < 3; i++) { - if (checkItemGet(i + L2_KEY_PIECES1, 1) != 0) { + if (checkItemGet(i + fpcNm_ITEM_L2_KEY_PIECES1, 1) != 0) { itemsObtained++; } } @@ -830,4 +830,4 @@ void dMenu_ItemExplain_c::setScale() { f32 h = mpExpItemTex[0]->height / 48.0f * scale; mpInfoIcon->scale(w, h); } -} \ No newline at end of file +} -- cgit v1.2.3