From f86f01ac498b2118e749891b78acb275fc0fd119 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 00:29:56 +0000 Subject: [PATCH] Decompile fn_04200 (UILapineUpgradeBoxWnd::Paint) Batch #17529 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_04200 UILapineUpgradeBoxWnd::Paint: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Items/UILapineUpgradeBoxWnd.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/UI/Items/UILapineUpgradeBoxWnd.cpp b/Source/UI/Items/UILapineUpgradeBoxWnd.cpp index e207835ae..1a89290ef 100644 --- a/Source/UI/Items/UILapineUpgradeBoxWnd.cpp +++ b/Source/UI/Items/UILapineUpgradeBoxWnd.cpp @@ -151,10 +151,9 @@ void UILapineUpgradeBox_IngredientInfoWnd::Paint() { // OFFSET: 0x00603B60 // FUNCTION: fn_04200 void UILapineUpgradeBoxWnd::Paint() { - CBitmapRes* background = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\lapine\\bg_lapineUpgrade.bmp"))); - this->DrawBitmap(0, 0, background, true); + this->DrawBitmap(0, 0, static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\lapine\\bg_lapineUpgrade.bmp"))), true); - if (this->title.size() != 0) { + if (this->title.size() > 0) { this->DrawTitleBar(false, this->title.c_str(), 0); } @@ -165,9 +164,8 @@ void UILapineUpgradeBoxWnd::Paint() { DrawItemIcon(*this, ResourceMgr::Instance(), 101, 165, this->item, 0); } - if (timeGetTime() < this->noticeTick + this->noticeDuration) { - CBitmapRes* icon = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\lapine\\icon_notify.bmp"))); - this->DrawBitmap(6, 229, icon, true); + if (this->noticeTick + this->noticeDuration > timeGetTime()) { + this->DrawBitmap(6, 229, static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\lapine\\icon_notify.bmp"))), true); this->DrawTextAt(25, 230, this->notice.c_str(), 0, 0, 12, 0xFF0000, 0, 0); } }