From 6a8c1e250d9d74889c88e58617a2de438782f9fb Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 18 Sep 2025 19:26:04 +0100 Subject: [PATCH] m_easing.c: Actually use the value of the clamp WERROR just let me know about these --- src/m_easing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/m_easing.c b/src/m_easing.c index e1e225ecd..8eb796497 100644 --- a/src/m_easing.c +++ b/src/m_easing.c @@ -459,7 +459,7 @@ fixed_t FixedRescale(fixed_t value, fixed_t inmin, fixed_t inmax, easingfunc_t e return outmin; // Clamp the input value to the range - max(inmin, min(inmax, value)); + value = max(inmin, min(inmax, value)); // Normalize the value to [0, FRACUNIT] range fixed_t t = FixedDiv(value - inmin, inmax - inmin); @@ -499,7 +499,7 @@ INT16 IntRescale(INT16 value, INT16 inmin, INT16 inmax, easingfunc_t easing_func return outmin; // Clamp the input value to the range - max(inmin, min(inmax, value)); + value = max(inmin, min(inmax, value)); // Conversion shit value = value<