From 2287ab7097234ff8b058ef9c904dbb1814a5349e Mon Sep 17 00:00:00 2001 From: Segrain Date: Fri, 2 Feb 2024 14:19:54 +0400 Subject: [PATCH] Fix for Ceiling(). --- code/__HELPERS/#maths.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/#maths.dm b/code/__HELPERS/#maths.dm index 6e4e1707b3dd..825090bc4f3b 100644 --- a/code/__HELPERS/#maths.dm +++ b/code/__HELPERS/#maths.dm @@ -8,7 +8,7 @@ GLOBAL_LIST_INIT(sqrtTable, list(1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, // MATH DEFINES -#define Ceiling(x) (-round(-x)) +#define Ceiling(x) (-round(-(x))) #define CLAMP01(x) (clamp(x, 0, 1)) // cotangent