diff options
| author | robojumper <robojumper@gmail.com> | 2026-01-24 11:03:02 +0100 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2026-01-24 11:03:02 +0100 |
| commit | 0d7a72be97c756425b93c9a96da212d6a5d0faeb (patch) | |
| tree | 1ef4dce091f6cc814181f4531449f6e5d5da3e8e | |
| parent | fa31853d1b3b828ab63567d66e31b7e3bd23134c (diff) | |
constant
| -rw-r--r-- | include/d/lyt/d_lyt_deposit_box_cursor.h | 2 | ||||
| -rw-r--r-- | src/d/lyt/d_lyt_deposit_box_cursor.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/d/lyt/d_lyt_deposit_box_cursor.h b/include/d/lyt/d_lyt_deposit_box_cursor.h index a79d13d4..82f1175e 100644 --- a/include/d/lyt/d_lyt_deposit_box_cursor.h +++ b/include/d/lyt/d_lyt_deposit_box_cursor.h @@ -45,6 +45,8 @@ public: } private: + static const s32 NUM_ICONS_PER_PAGE = 12; + void initIcon(); void realizeNav(); diff --git a/src/d/lyt/d_lyt_deposit_box_cursor.cpp b/src/d/lyt/d_lyt_deposit_box_cursor.cpp index f337a068..4cf9dda1 100644 --- a/src/d/lyt/d_lyt_deposit_box_cursor.cpp +++ b/src/d/lyt/d_lyt_deposit_box_cursor.cpp @@ -164,7 +164,7 @@ void dLytDepositBoxCursor_c::init(s32 location, s32 slot, s32 item, bool isSell) number = getDepositItemAmount(slot); durability = getDepositShieldDurability(slot); color = getDepositItemNumberColor(slot); - mSlot = slot % 12; + mSlot = slot % NUM_ICONS_PER_PAGE; } if (number < 0) { @@ -195,7 +195,7 @@ void dLytDepositBoxCursor_c::updateSlot(s32 location, s32 slot, s32 item, bool i if (mItemLocation == LOC_POUCH) { mSlot = slot; } else { - mSlot = slot % 12; + mSlot = slot % NUM_ICONS_PER_PAGE; } } |
