From f1af05c2a003fec1471bf0a831a987af334dffdf Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 11:25:52 +0000 Subject: [PATCH] Decompile fn_12905 (UIMileageWnd::Paint) Batch #15747 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_12905 UIMileageWnd::Paint: logic confirmed by peer review Peer-reviewed-by: eAthena, Tanke Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UIMileageWnd.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/UI/Window/UIMileageWnd.cpp b/Source/UI/Window/UIMileageWnd.cpp index 3a5ef5eaa..6d8ca62e4 100644 --- a/Source/UI/Window/UIMileageWnd.cpp +++ b/Source/UI/Window/UIMileageWnd.cpp @@ -47,15 +47,13 @@ void UIMileageWnd::Paint() { this->ClearSurface(0xFF00FF); std::string text; - const std::string background = FormatOwnedString("유저인터페이스\\basic_interface\\mileage_bg%d.bmp", this->m_bonus); - text = background; + text = static_cast(FormatOwnedString("유저인터페이스\\basic_interface\\mileage_bg%d.bmp", this->m_bonus)); this->DrawBitmap(0, 0, static_cast(ResourceMgr::Instance().Load(Resolve(text.c_str()))), true); if (this->m_point >= 300) { text = std::string("-- : --"); } else { - const std::string remaining = FormatOwnedString("%02d : %02d", this->m_remaining / 60, this->m_remaining % 60); - text = remaining; + text = static_cast(FormatOwnedString("%02d : %02d", this->m_remaining / 60, this->m_remaining % 60)); } int textWidth = this->TextWidth(text.c_str(), 0, 0, 12, 0, 0);