From d93b6e501fab36b66058391aa17647380b9634ec Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 14:40:53 +0000 Subject: [PATCH] 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). --- Source/Client/ReplayControl.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/Client/ReplayControl.cpp b/Source/Client/ReplayControl.cpp index 6465990fd..905ddb623 100644 --- a/Source/Client/ReplayControl.cpp +++ b/Source/Client/ReplayControl.cpp @@ -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; }