From a1dc726b93e62ea877cf0a5f908efbebed345050 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 10:54:37 +0000 Subject: [PATCH] Decompile fn_10852 (UIButton::Slot31) Batch #12111 by dori: 0 byte-identical, 1 confirmed by peer review. - fn_10852 UIButton::Slot31: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, Toshiro, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Buttons/UIButton.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/UI/Buttons/UIButton.cpp b/Source/UI/Buttons/UIButton.cpp index 4cb3faec..69763790 100644 --- a/Source/UI/Buttons/UIButton.cpp +++ b/Source/UI/Buttons/UIButton.cpp @@ -174,10 +174,10 @@ void UIButton::Slot31(int x, int y) { if (parent) { if (WindowPolicy(g_windowMgr.policy[0].actions, g_replayAnimationScaling != 0, 3, parent->geometry.id) != 0) { int id = this->geometry.id; - if (id == 185 && g_charViewMode && static_cast(g_charViewMode)->cursorType == 2) { + if (id == 185 && g_modeMgr.gameMode && g_modeMgr.gameMode->cursorType == 2) { const char* text = LookupMessage(17); if (g_windowMgr.Confirm(text, 2, true, false, 0, "Message", 280, 120, 0) == 187) { - static_cast(g_charViewMode)->SendMsg(2, 0, 0, 0, 0); + g_modeMgr.gameMode->SendMsg(2, 0, 0, 0, 0); } } else { if (id == 184 || id == 321) { @@ -190,7 +190,7 @@ void UIButton::Slot31(int x, int y) { } } } else { - static_cast(g_charViewMode)->SendMsg(0, this->geometry.id, this->m_argument, 0, 0); + g_modeMgr.gameMode->SendMsg(0, this->geometry.id, this->m_argument, 0, 0); } }