From 648df91b9d884e6ef7fa8cfb3dbd0eccc8433b55 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 00:18:54 +0000 Subject: [PATCH] Decompile 2 functions in Source/Client/Mode/GameModePackets.cpp, Source/UI/Buttons/UITextButton.cpp, ... Batch #17534 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_11448 UIBasicItemCtrl::OnMouseHover: logic confirmed by peer review - fn_10180 UIRuneSetList::Paint: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, Eofim Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Buttons/UITextButton.cpp | 6 +++--- Source/UI/RuneSystem/UIRuneSystemWnd.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/UI/Buttons/UITextButton.cpp b/Source/UI/Buttons/UITextButton.cpp index d72409e8d..658b202d2 100644 --- a/Source/UI/Buttons/UITextButton.cpp +++ b/Source/UI/Buttons/UITextButton.cpp @@ -528,11 +528,11 @@ void UIBasicItemCtrl::OnMouseHover(int, int) { if (std::atoi(this->m_item.itemId.c_str()) < 1) { text = this->m_tooltip; } else if (this->m_item.identity[1] == 0) { - text = this->m_item.DisplayName(0); + text = static_cast(this->m_item.DisplayName(0)); } else if (this->m_item.optionCount != 0) { - text = FormatOwnedString(LookupMessage(MSI_FAIL_NEED_EQUIPPED_GUN_GATLING), this->m_item.DisplayName(0).c_str(), this->m_item.optionCount, this->m_item.quantity); + text = static_cast(FormatOwnedString(LookupMessage(MSI_FAIL_NEED_EQUIPPED_GUN_GATLING), this->m_item.DisplayName(0).c_str(), this->m_item.optionCount, this->m_item.quantity)); } else { - text = FormatOwnedString(LookupMessage(MSI_EA2), this->m_item.DisplayName(0).c_str(), this->m_item.quantity); + text = static_cast(FormatOwnedString(LookupMessage(MSI_EA2), this->m_item.DisplayName(0).c_str(), this->m_item.quantity)); } int screenX = 0, screenY = 0; diff --git a/Source/UI/RuneSystem/UIRuneSystemWnd.cpp b/Source/UI/RuneSystem/UIRuneSystemWnd.cpp index 296842729..1adb03198 100644 --- a/Source/UI/RuneSystem/UIRuneSystemWnd.cpp +++ b/Source/UI/RuneSystem/UIRuneSystemWnd.cpp @@ -1194,7 +1194,7 @@ void UIRuneSetList::Paint() { std::string grade; int gradeWidth = 0; if (runeSet->m_grade) { - grade = FormatOwnedString("+%d", runeSet->m_grade); + grade = static_cast(FormatOwnedString("+%d", runeSet->m_grade)); gradeWidth = this->TextWidth(grade.c_str(), grade.size(), 0, 12, 0, 0); }