diff options
| author | Herman Semenov <GermanAizek@yandex.ru> | 2024-08-30 21:17:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-31 00:17:18 +0300 |
| commit | 8386cefa3d5bb177e61f98b650671e93ea1bbe14 (patch) | |
| tree | 00ddd705d310bef1401793cf21b295e3165c663c | |
| parent | b7380e77d1e9744b03d5906638424c769b33d35c (diff) | |
Reverse is done dMsgObject_c::getSelectBombPriceLocal() (#2196)
| -rw-r--r-- | src/d/msg/d_msg_object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d/msg/d_msg_object.cpp b/src/d/msg/d_msg_object.cpp index 0c08c601f5..a8f7878b97 100644 --- a/src/d/msg/d_msg_object.cpp +++ b/src/d/msg/d_msg_object.cpp @@ -2744,12 +2744,12 @@ u8 dMsgObject_c::getSelectBombBagIDLocal() { } /* 8023768C-8023773C 231FCC 00B0+00 1/1 0/0 0/0 .text getSelectBombPriceLocal__12dMsgObject_cFv */ -// tertiary condition issue +// Matches with literals #ifdef NONMATCHING s16 dMsgObject_c::getSelectBombPriceLocal() { u8 i_selectPos = getSelectCursorPos(); JUT_ASSERT(4276, i_selectPos >= 0 && i_selectPos < dSv_player_item_c::BOMB_BAG_MAX); - u8 i_cursorPos = field_0x193 != 0 ? getSelectBomBag(i_selectPos) : i_selectPos; + u8 i_cursorPos = field_0x193 != 0 ? getSelectBomBag(i_selectPos) : i_selectPos++; u16 uVar1 = getBombBuyPriceLocal(getBombMessageIDLocal(i_cursorPos)); int num = getSelectBombNum(); return (num * uVar1) / 10.0f; |
