Fix negative relative position not working (incorrectly clamped to 0, 100)

This commit is contained in:
dec05eba
2026-01-23 00:10:11 +01:00
parent f6013d094d
commit 4cebc3f0ee

View File

@@ -2800,8 +2800,8 @@ static bool string_to_bool(const char *str, size_t len, bool *value) {
} }
static int clamp_scalar(int value) { static int clamp_scalar(int value) {
if(value < 0) if(value < -100)
return 0; return -100;
else if(value > 100) else if(value > 100)
return 100; return 100;
else else