mirror of
https://github.com/Sandstorm-Station/Sandstorm-Station-13.git
synced 2026-08-30 00:36:23 +01:00
Pass centesimal to the correction call
Co-authored-by: SandPoot <43283559+SandPoot@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user