From 0000858ab1fc412e05062b9960bbdc17f0bf1cc4 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 13:52:45 +0000 Subject: [PATCH] Decompile fn_19991 (CEffectPrim::RenderJitterSweeps) Batch #13350 by Toshiro: 0 byte-identical, 1 confirmed by peer review. - fn_19991 CEffectPrim::RenderJitterSweeps: logic confirmed by peer review Peer-reviewed-by: gordaoprogramas, Tanke, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/EffectPrimitiveSweeps.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Contents/Effects/EffectPrimitiveSweeps.cpp b/Source/Contents/Effects/EffectPrimitiveSweeps.cpp index de3f0900..7b9b85be 100644 --- a/Source/Contents/Effects/EffectPrimitiveSweeps.cpp +++ b/Source/Contents/Effects/EffectPrimitiveSweeps.cpp @@ -463,11 +463,11 @@ void CEffectPrim::RenderJitterSweeps(matrix& wtm) { float jitterZ[21]; for (int i = 0; i < slot.vecTNow.y; ++i) { int ry = std::rand() % 7; - jitterY[i] = static_cast(ry >= 0 ? ry : 0) * 0.1f - 0.3f; + jitterY[i] = static_cast(ry) * 0.1f - 0.3f; int rx = std::rand() % 7; - jitterX[i] = static_cast(rx >= 0 ? rx : 0) * 0.1f - 0.3f; + jitterX[i] = static_cast(rx) * 0.1f - 0.3f; int rz = std::rand() % 7; - jitterZ[i] = static_cast(rz >= 0 ? rz : 0) * 0.1f - 0.3f; + jitterZ[i] = static_cast(rz) * 0.1f - 0.3f; } if (slot.life != 1 || slot.alphaB <= 0 || slot.process <= 0) {