From 749216d2af261dd3ca8ec28acb8b8d03372ee18c Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Tue, 19 Nov 2024 12:22:58 +0300 Subject: [PATCH] Converge increments only when holding the left/right button. --- UnleashedRecomp/ui/options_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnleashedRecomp/ui/options_menu.cpp b/UnleashedRecomp/ui/options_menu.cpp index d7d1095a..1fe8c3c3 100644 --- a/UnleashedRecomp/ui/options_menu.cpp +++ b/UnleashedRecomp/ui/options_menu.cpp @@ -610,7 +610,7 @@ static void DrawConfigOption(int32_t rowIndex, float yOffset, ConfigDef* conf config->Value += 0.01f; deltaTime -= INCREMENT_TIME; - } while (deltaTime > 0.0f); + } while (fastIncrement && deltaTime > 0.0f); config->Value = std::clamp(config->Value, valueMin, valueMax); }