From 4cebc3f0eea45153d023b532208d09ab76a442b8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 23 Jan 2026 00:10:11 +0100 Subject: [PATCH] Fix negative relative position not working (incorrectly clamped to 0, 100) --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index efebca3..672ff11 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2800,8 +2800,8 @@ static bool string_to_bool(const char *str, size_t len, bool *value) { } static int clamp_scalar(int value) { - if(value < 0) - return 0; + if(value < -100) + return -100; else if(value > 100) return 100; else