From f794ffa6e35b938cedf675440b3a7ef524de944a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 14:01:52 +0000 Subject: [PATCH] Decompile 9 functions in Source/Contents/Effects/EffectPrimitiveMotion.cpp Batch #13360 by cremane: 0 byte-identical, 9 confirmed by peer review. - fn_19804 CEffectPrim::PrimAnimatedFlash: logic confirmed by peer review - fn_19821 CEffectPrim::PrimParticleUp: logic confirmed by peer review - fn_19825 CEffectPrim::PrimPokJuk: logic confirmed by peer review - fn_19838 CEffectPrim::PrimSphereWind2: logic confirmed by peer review - fn_19936 CEffectPrim::PrimTwinSpin: logic confirmed by peer review - fn_19943 CEffectPrim::PrimTextureSpin: logic confirmed by peer review - fn_19956 CEffectPrim::PrimRandomSpin: logic confirmed by peer review - fn_19961 CEffectPrim::PrimHeightRamp: logic confirmed by peer review - fn_19965 CEffectPrim::PrimSpiralFade: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, gordaoprogramas, Toshiro Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- .../Effects/EffectPrimitiveMotion.cpp | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/Source/Contents/Effects/EffectPrimitiveMotion.cpp b/Source/Contents/Effects/EffectPrimitiveMotion.cpp index 3676bd59..94a0959a 100644 --- a/Source/Contents/Effects/EffectPrimitiveMotion.cpp +++ b/Source/Contents/Effects/EffectPrimitiveMotion.cpp @@ -3634,7 +3634,8 @@ void CEffectPrim::PrimParticleUp() { continue; } - const int process = ++slot.process; + const int process = slot.process + 1; + slot.process = process; if (process <= 0) { continue; @@ -3725,7 +3726,8 @@ void CEffectPrim::PrimPokJuk() { continue; } - const int process = ++slot.process; + const int process = slot.process + 1; + slot.process = process; if (process <= 0) { continue; @@ -4027,7 +4029,8 @@ void CEffectPrim::PrimSphereWind2() { continue; } - const int process = ++slot.process; + const int process = slot.process + 1; + slot.process = process; if (process <= 0) { continue; @@ -4651,7 +4654,8 @@ __declspec(noinline) bool CEffectPrim::PrimTextureSpin() { continue; } - const int process = ++slot.process; + const int process = slot.process + 1; + slot.process = process; if (slot.height[2] == 0.0f) { slot.rotStart = static_cast(slot.rotStart + 6); @@ -4798,7 +4802,8 @@ void CEffectPrim::PrimAnimatedFlash() { return; } - const int process = ++slot.process; + const int process = slot.process + 1; + slot.process = process; if (process % 4 == 0) { char frame = static_cast(slot.flag1[0] + 1); if (frame >= static_cast(this->state.totalTexture)) { @@ -4833,7 +4838,8 @@ __declspec(noinline) void CEffectPrim::PrimRandomSpin() { continue; } - const int process = ++slot.process; + const int process = slot.process + 1; + slot.process = process; if (process <= 0) { continue; } @@ -4865,7 +4871,8 @@ __declspec(noinline) void CEffectPrim::PrimHeightRamp() { continue; } - const int process = ++slot.process; + const int process = slot.process + 1; + slot.process = process; slot.rotStart = static_cast(slot.rotStart + 1); if (slot.rotStart >= 360) { slot.rotStart = static_cast(slot.rotStart - 360); @@ -4951,7 +4958,8 @@ __declspec(noinline) bool CEffectPrim::PrimTwinSpin() { EffectPrimitiveSlot& first = this->state.slots[0]; first.riseAngle = static_cast(first.riseAngle + 3); - const int firstProcess = ++first.process; + const int firstProcess = first.process + 1; + first.process = firstProcess; if (first.riseAngle >= 360) { first.riseAngle = static_cast(first.riseAngle - 360); } @@ -4966,7 +4974,8 @@ __declspec(noinline) bool CEffectPrim::PrimTwinSpin() { EffectPrimitiveSlot& second = this->state.slots[1]; second.riseAngle = static_cast(second.riseAngle + 3); - const int secondProcess = ++second.process; + const int secondProcess = second.process + 1; + second.process = secondProcess; if (second.riseAngle >= 360) { second.riseAngle = static_cast(second.riseAngle - 360); } @@ -5729,7 +5738,8 @@ bool CEffectPrim::PrimSpiralFade() { continue; } - const int process = ++slot.process; + const int process = slot.process + 1; + slot.process = process; if (process <= 0) { continue; }