Skip to content

Commit

Permalink
Reverse is done dMsgObject_c::getSelectBombPriceLocal()
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanAizek committed Aug 30, 2024
1 parent b7380e7 commit c299760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/d/msg/d_msg_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c299760

Please sign in to comment.