From e6e2de298481f1fa857d8757acf5097e2a34ddef Mon Sep 17 00:00:00 2001 From: TheLife Date: Thu, 8 Aug 2024 18:27:51 -0300 Subject: [PATCH] Pass centesimal to the correction call Co-authored-by: SandPoot <43283559+SandPoot@users.noreply.github.com> --- code/__SANDCODE/HELPERS/math.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__SANDCODE/HELPERS/math.dm b/code/__SANDCODE/HELPERS/math.dm index 6291cef598..05eca8146c 100644 --- a/code/__SANDCODE/HELPERS/math.dm +++ b/code/__SANDCODE/HELPERS/math.dm @@ -1,4 +1,4 @@ /proc/percentage_between(x,a,b,centesimal = TRUE) if (a > b) - return percentage_between(x,b,a) + return percentage_between(x, b, a, centesimal) return clamp((x-a)/(b-a),0,1) * (centesimal ? 100 : 1)