clamp is now min(max()) (#22361)

This commit is contained in:
SirSkeleto
2019-04-07 13:24:38 -04:00
committed by Exxion
parent 78f66b8f22
commit f666d03b45

View File

@@ -322,7 +322,7 @@ proc/get_space_area()
return 0
//1 line helper procs compressed into defines.
#define Clamp(x, y, z) (x <= y ? y : (x >= z ? z : x))
#define Clamp(x, y, z) min(max(x, y), z)
//x is the number you want to clamp
//y is the minimum
//z is the maximum