From 27d7cb9728b9fb0db2ceda9ce430309d4de0d4be Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 11:53:55 +0000 Subject: [PATCH] Decompile fn_22399 (CGndRiser::OnProcess) Batch #15027 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review. - fn_22399 CGndRiser::OnProcess: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Sound/SoundMaker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Contents/Sound/SoundMaker.cpp b/Source/Contents/Sound/SoundMaker.cpp index a22fb91d6..803585853 100644 --- a/Source/Contents/Sound/SoundMaker.cpp +++ b/Source/Contents/Sound/SoundMaker.cpp @@ -507,15 +507,15 @@ bool CGndRiser::OnProcess() { CGameMode* mode = static_cast(g_modeMgr.GetGameMode()); if (mode) { const float half = static_cast(this->lifetime / 2); - float alpha; if (frame > half) { const float rise = frame - half; const float span = static_cast(this->lifetime) * g_depthAverageHalf; - alpha = (rise * rise - span * span) / 25.0f; - } else { - alpha = -(frame * frame) / 25.0f; + const float alpha = (rise * rise - span * span) / 25.0f; + mode->scene->ground->SetGndRiseAmount(alpha, this->screenX, this->screenY); + return true; } + const float alpha = -(frame * frame) / 25.0f; mode->scene->ground->SetGndRiseAmount(alpha, this->screenX, this->screenY); }