From 8c2b8dd875f244d90344de2e47d0de35edbd6a30 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 01:50:22 +0000 Subject: [PATCH] Decompile fn_10858 (UIButton::Slot28) Batch #12640 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_10858 UIButton::Slot28: logic confirmed by peer review Peer-reviewed-by: Yommy, Tanke, aDw Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Buttons/UIButton.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/UI/Buttons/UIButton.cpp b/Source/UI/Buttons/UIButton.cpp index 69763790..1c2b98ea 100644 --- a/Source/UI/Buttons/UIButton.cpp +++ b/Source/UI/Buttons/UIButton.cpp @@ -120,12 +120,7 @@ void UIButton::Slot28(int x, int y) { if (!this->m_tooltip.empty()) { int screenX = 0, screenY = -20; - - for (const UIWindow* window = this; window; window = window->parent) { - screenX = (screenX + window->geometry.x); - screenY = (screenY + window->geometry.y); - } - + this->ToScreen(screenX, screenY); g_modeMgr.gameMode->ShowTooltip(this->m_tooltip.c_str(), screenX, screenY, -1, false, true); }