From bb2222057b65f36665346fb2fbe5beb405f6d0b1 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 12:07:44 +0000 Subject: [PATCH] Decompile fn_10104 (CCharacterRender::RenderRobe) Batch #15751 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_10104 CCharacterRender::RenderRobe: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/SpriteRobe.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/Contents/SpriteRobe.cpp b/Source/Contents/SpriteRobe.cpp index eb096aa47..855e1aafb 100644 --- a/Source/Contents/SpriteRobe.cpp +++ b/Source/Contents/SpriteRobe.cpp @@ -41,11 +41,10 @@ void CCharacterRender::RenderRobe( CActRes* act = static_cast(ResourceMgr::Instance().Load(actName)); int frame = this->frameIndex; if (baseAct) { - int baseFrame = frame; - if ((this->actionIndex >= 0 && this->actionIndex < 8) || (this->actionIndex >= 16 && this->actionIndex <= 22)) { - baseFrame = 0; - } - g_session.GetSyncedFrame(baseAct, act, this->actionIndex, baseFrame, 0, &frame); + int action = this->actionIndex; + g_session.GetSyncedFrame( + baseAct, act, action, ((action >= 0 && action < 8) || (action >= 16 && action <= 22)) ? 0 : frame, 0, &frame + ); } const ActionFrame& actionFrame = act->Frame(this->actionIndex, frame);