Decompile fn_19343 (Replay::SetState)

Batch #16100 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_19343 Replay::SetState: logic confirmed by peer review

Peer-reviewed-by: alisonrag, youko
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-10 14:40:53 +00:00
commit d93b6e501f

View file

@ -40,14 +40,10 @@ bool Replay::SetState(int state) {
}
if (state >= 1 && state <= 8) {
this->state = state;
if (state <= 3) {
g_replayAnimationScaling = 0;
}
g_replayAnimationScaling = state <= 3 ? 0 : g_replayAnimationScaling;
} else {
this->state = 1;
}
if (state >= 6 && state <= 8) {
g_replayAnimationScaling = 1;
}
g_replayAnimationScaling = state >= 6 && state <= 8 ? 1 : g_replayAnimationScaling;
return true;
}