From a89ef0a35d1bb1f51e86ba5c175daf37c4d155ea Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 14:03:50 +0000 Subject: [PATCH] Decompile fn_09729 (FuncDrawWNDChar::DrawOnTop) Batch #13185 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review. - fn_09729 FuncDrawWNDChar::DrawOnTop: logic confirmed by peer review Peer-reviewed-by: Tanke, cremane, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/FuncDrawWNDChar.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Source/UI/Window/FuncDrawWNDChar.cpp b/Source/UI/Window/FuncDrawWNDChar.cpp index 8c66a677..5a480b36 100644 --- a/Source/UI/Window/FuncDrawWNDChar.cpp +++ b/Source/UI/Window/FuncDrawWNDChar.cpp @@ -255,19 +255,22 @@ std::list FuncDrawWNDChar::DrawOrder() { // FUNCTION: fn_09729 bool FuncDrawWNDChar::DrawOnTop() { int job = this->m_job; - bool drawOnTop = true; if (g_session.m_newRobeDrawOnTop == 1) { + bool drawOnTop = true; if (this->m_flags == 1) { job = g_session.GetRidingJob(job); } int layer = job; - if (g_session.m_hotkeyScript->Call("_New_DrawOnTop", "ddddd>bd", this->m_robe, this->m_sex, job, this->m_action, this->m_motion, &drawOnTop, &layer) == 1) { + if (g_session.m_hotkeyScript->Call(std::string("_New_DrawOnTop", 14), "ddddd>bd", this->m_robe, this->m_sex, job, this->m_action, this->m_motion, &drawOnTop, &layer) == 1) { + return drawOnTop; + } + } else { + bool drawOnTop = true; + if (g_session.m_hotkeyScript->Call(std::string("DrawOnTop", 9), "ddddd>b", this->m_robe, this->m_sex, job, this->m_action, this->m_motion, &drawOnTop) == 1) { return drawOnTop; } - } else if (g_session.m_hotkeyScript->Call("DrawOnTop", "ddddd>b", this->m_robe, this->m_sex, job, this->m_action, this->m_motion, &drawOnTop) == 1) { - return drawOnTop; } return true;