From a4bfe5e581dcd0ee1f02bfca4c68ceea594f8f4a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 02:43:50 +0000 Subject: [PATCH] Decompile fn_19208 (CStarEffect::UpdateParticle) Batch #17715 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_19208 CStarEffect::UpdateParticle: logic confirmed by peer review Peer-reviewed-by: Yommy, alisonrag, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/Skills/StarEffect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Contents/Effects/Skills/StarEffect.cpp b/Source/Contents/Effects/Skills/StarEffect.cpp index 369ba1658..32ae94b61 100644 --- a/Source/Contents/Effects/Skills/StarEffect.cpp +++ b/Source/Contents/Effects/Skills/StarEffect.cpp @@ -126,7 +126,8 @@ void CStarEffect::UpdateParticle(CParticle* particle) { } StarParticleState& state = *reinterpret_cast(&particle->animationParameter); - if (particle->elapsedFrames % 14 == 0) { + const int frame = particle->elapsedFrames; + if (frame % 14 == 0) { int texture = static_cast(state.texture) + 1; if (texture > 6) { texture = 1; @@ -135,7 +136,6 @@ void CStarEffect::UpdateParticle(CParticle* particle) { particle->SetTexture(FormatOwnedString("effect\\star%02d.bmp", texture).c_str()); } - const int frame = particle->elapsedFrames; int alpha = particle->alpha; if (frame < 80) { alpha += 3;