From 60095b33f950a0aecd6a4472938b68e398dbbe63 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 14:40:20 +0000 Subject: [PATCH] Decompile 3 functions in Source/UI/Acceptance/UIChooseSellBuyWnd.cpp Batch #18462 by eAthena: 0 byte-identical, 3 confirmed by peer review. - fn_12270 UIEquipWnd::OnLBtnDown: logic confirmed by peer review - fn_12323 UIItemCollectionWnd::SetHeight: logic confirmed by peer review - fn_12327 UIBookWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, alisonrag, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Acceptance/UIChooseSellBuyWnd.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp index f11d1b2cf..0d5f17867 100644 --- a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp +++ b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp @@ -3772,7 +3772,11 @@ int UIBookWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intp if (this->m_lineCount % 19 > 0) { ++this->m_pageCount; } - this->SendMsg(this, b == 287 ? 92 : 93, page, 0, 0, 0); + if (b == 287) { + this->SendMsg(this, 92, page, 0, 0, 0); + } else { + this->SendMsg(this, 93, page, 0, 0, 0); + } } break; } @@ -6229,8 +6233,8 @@ void UIItemCollectionWnd::SetHeight(int height) { } this->m_resizer->Move(this->geometry.width - 17, resizerY); + const int bottom = this->m_viewer->geometry.y + this->m_viewer->geometry.height; if (moveInfoId != 0) { - const int bottom = this->m_viewer->geometry.y + this->m_viewer->geometry.height; this->m_moveInfo->Move(this->m_viewer->geometry.x, this->m_compare != 0 ? bottom - 29 : bottom); } else { this->m_moveInfo->Move(-1000, -1000); @@ -10032,7 +10036,11 @@ void UIEquipWnd::OnLBtnDown(int x, int y) { if (item.quantity > 0) { CGameMode* mode = static_cast(g_modeMgr.GetGameMode()); const EquipSlots slots = g_session.GetEquipSlots(item.identity[3]); - mode->drag.BeginItem(g_windowMgr, this->m_page == 1 ? 24 : 2, item, item.quantity, slots.values[2]); + if (this->m_page == 1) { + mode->drag.BeginItem(g_windowMgr, 24, item, item.quantity, slots.values[2]); + } else { + mode->drag.BeginItem(g_windowMgr, 2, item, item.quantity, slots.values[2]); + } } if (HIBYTE(GetAsyncKeyState(VK_SHIFT))) {