From dc86e77204da2becbd1567c4715c9c37e27ff9f1 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 16:15:07 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Effects/EffectPrimitiveMotion.cpp Batch #12504 by unna: 0 byte-identical, 2 confirmed by peer review. - fn_19773 CEffectPrim::Prim3DCasting4: logic confirmed by peer review - fn_19774 CEffectPrim::Prim3DCasting5: logic confirmed by peer review Peer-reviewed-by: Yommy, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/EffectPrimitiveMotion.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/Contents/Effects/EffectPrimitiveMotion.cpp b/Source/Contents/Effects/EffectPrimitiveMotion.cpp index d269ad89..52a42267 100644 --- a/Source/Contents/Effects/EffectPrimitiveMotion.cpp +++ b/Source/Contents/Effects/EffectPrimitiveMotion.cpp @@ -1,4 +1,4 @@ -#include "Contents/Effects/EffectPrimitiveMotion.h" +#include "Contents/Effects/EffectPrimitiveMotion.h" #include "Client/Mode/CGameMode.h" #include "Client/Mode/ModeMgr.h" #include "Client/Replay.h" @@ -348,10 +348,10 @@ bool CEffectPrim::Prim3DCasting4() { for (int value = 0; value < 21; ++value) { if (slot.flag1[value] == 0) { - slot.height[value] = slot.maxHeight; + this->state.slots[index].height[value] = slot.maxHeight; - if (slot.height[value] < 0.0f) { - slot.height[value] = 0; + if (this->state.slots[index].height[value] < 0.0f) { + this->state.slots[index].height[value] = 0; } } } @@ -408,10 +408,10 @@ bool CEffectPrim::Prim3DCasting5() { for (int value = 0; value < 21; ++value) { if (slot.flag1[value] == 0) { - slot.height[value] = slot.maxHeight; + this->state.slots[index].height[value] = slot.maxHeight; - if (slot.height[value] < 0.0f) { - slot.height[value] = 0; + if (this->state.slots[index].height[value] < 0.0f) { + this->state.slots[index].height[value] = 0; } } }