Pass centesimal to the correction call

Co-authored-by: SandPoot <43283559+SandPoot@users.noreply.github.com>
This commit is contained in:
TheLife
2024-08-08 18:27:51 -03:00
committed by GitHub
co-authored by SandPoot
parent 74ec7e83e4
commit e6e2de2984
+1 -1
View File
@@ -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)