From 99b967fdd2e476a5d443fd60825ed7b388ccceaf Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 18:39:09 +0000 Subject: [PATCH] Decompile fn_19044 (CEZ2STRScreenEffect::OnProcess) Batch #15133 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_19044 CEZ2STRScreenEffect::OnProcess: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, kyoshi Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/EZ2STREffect.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Source/Contents/Effects/EZ2STREffect.cpp b/Source/Contents/Effects/EZ2STREffect.cpp index 0ad086e81..b6a0c5c43 100644 --- a/Source/Contents/Effects/EZ2STREffect.cpp +++ b/Source/Contents/Effects/EZ2STREffect.cpp @@ -5383,9 +5383,10 @@ void CEZ2STRScreenEffect::OnProcess() { } } - this->particle->position.x = this->position[0]; - this->particle->position.y = this->position[1]; - this->particle->position.z = this->position[2]; + CEZ2STRParticle* target = this->particle; + target->position.x = this->position[0]; + target->position.y = this->position[1]; + target->position.z = this->position[2]; if (CEZ2STRParticle* particle = this->particle) { if (this->ApplyHeadOffset(particle) || this->id == 0x584) { @@ -5419,8 +5420,10 @@ void CEZ2STRScreenEffect::OnProcess() { CEZ2STRParticle* particle = this->particle; float extent[2]; const float* shift = actor->GetExtent(extent); - particle->m_shiftX = factor * shift[0]; - particle->m_shiftY = factor * shift[1]; + float shiftX = factor * shift[0]; + float shiftY = factor * shift[1]; + particle->m_shiftX = shiftX; + particle->m_shiftY = shiftY; } this->particle->m_lift = *reinterpret_cast(&actor->render.hoverOffsetLow);