From 024158db972069e38973ef7f97cbe07c9b6a31d2 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 14:37:53 +0000 Subject: [PATCH] Decompile fn_19887 (CEffectPrim::RenderSpiralBlades) Batch #13265 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_19887 CEffectPrim::RenderSpiralBlades: logic confirmed by peer review Peer-reviewed-by: jessip, Tanke, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/EffectPrimitiveRendering.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/Contents/Effects/EffectPrimitiveRendering.cpp b/Source/Contents/Effects/EffectPrimitiveRendering.cpp index aacb4802..ab503950 100644 --- a/Source/Contents/Effects/EffectPrimitiveRendering.cpp +++ b/Source/Contents/Effects/EffectPrimitiveRendering.cpp @@ -3018,13 +3018,16 @@ void CEffectPrim::RenderSpiralBlades(matrix& wtm) { const vector3d p3{x + vec3.x, y + vec3.y, z + vec3.z}; const vector3d p4{x + vec4.x, y + vec4.y, z + vec4.z}; - const int mode = this->state.slots[0].flag1[2]; - if (mode == 0 || mode == 3) { + switch (this->state.slots[0].flag1[2]) { + case 0: + case 3: this->RenderTeiRect(&rpCnt, slot.alphaB, p1, p2, p3, p4, wtm, 1, static_cast(slot.flag1[0]), 1, 255, 255, 255, 0.0f, 1.0f, 0.0f, 1.0f, 0); - } else if (mode == 4) { + break; + case 4: this->RenderTeiRect( &rpCnt, slot.alphaB, p2, p1, p4, p3, wtm, 0, static_cast(i + slot.flag1[0]) % this->state.totalTexture, 1, 255, 150, 150, 0.0f, 1.0f, 0.0f, 1.0f, 0 ); + break; } } }