From 21b80c3d409cb7b2e6a463cb32f84e19eee8545f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 11:09:44 +0000 Subject: [PATCH] Decompile fn_07744 (UIMiniPartyWnd::SendMsg) Batch #18133 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_07744 UIMiniPartyWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, KWDev, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Party/UIMiniPartyWnd.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Source/UI/Party/UIMiniPartyWnd.cpp b/Source/UI/Party/UIMiniPartyWnd.cpp index d37f2e158..4cb009b57 100644 --- a/Source/UI/Party/UIMiniPartyWnd.cpp +++ b/Source/UI/Party/UIMiniPartyWnd.cpp @@ -444,7 +444,7 @@ int UIMiniPartyWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argumen } case UM_MENU_SELECTED: this->m_infoWnd->SendMsg(sender, message, argument1, argument2, argument3, argument4); - return 0; + break; case UM_COMMAND: if (argument1 == 34 && this->m_member.accountId == static_cast(argument2) && this->m_member.offline == 0 && this->m_infoWnd) { this->m_infoWnd->SendMsg(sender, message, 34, argument2, argument3, argument4); @@ -456,11 +456,13 @@ int UIMiniPartyWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argumen return 0; } const int previous = this->m_sizeMode; + const int wideWidth = this->m_widths[0]; + const int normalWidth = this->m_widths[1]; if (argument2 <= this->m_widths[2]) { this->m_sizeMode = 2; - } else if (argument2 <= this->m_widths[1]) { + } else if (argument2 <= normalWidth) { this->m_sizeMode = 1; - } else if (argument2 <= this->m_widths[0]) { + } else if (argument2 <= wideWidth) { this->m_sizeMode = 0; } else { return 0; @@ -516,10 +518,12 @@ int UIMiniPartyWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argumen if (this->m_infoWnd) { this->m_infoWnd->SendMsg(sender, message, argument1, argument2, argument3, argument4); } - return 0; + break; + default: + return UIFrameWnd::SendMsg(sender, message, argument1, argument2, argument3, argument4); } - return UIFrameWnd::SendMsg(sender, message, argument1, argument2, argument3, argument4); + return 0; } // OFFSET: 0x00740300