From 7499f4126495f87b3b7ac4ecc8212a9f1f5c21ac Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 27 Sep 2022 17:40:56 +0200 Subject: Fix wrong floori() behavior --- core/variant/variant_utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/variant/variant_utility.cpp b/core/variant/variant_utility.cpp index 7ff64c88f0..5bad27c607 100644 --- a/core/variant/variant_utility.cpp +++ b/core/variant/variant_utility.cpp @@ -129,7 +129,7 @@ struct VariantUtilityFunctions { } static inline int floori(double x) { - return int(x); + return int(Math::floor(x)); } static inline Variant ceil(Variant x, Callable::CallError &r_error) { -- cgit v1.2.3