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).
This commit is contained in:
ragnarok-clanker 2026-11-12 02:43:50 +00:00
commit a4bfe5e581

View file

@ -126,7 +126,8 @@ void CStarEffect::UpdateParticle(CParticle* particle) {
}
StarParticleState& state = *reinterpret_cast<StarParticleState*>(&particle->animationParameter);
if (particle->elapsedFrames % 14 == 0) {
const int frame = particle->elapsedFrames;
if (frame % 14 == 0) {
int texture = static_cast<int>(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;