From 2b1c76a05d9c484a27066e58d4406ad65d64a844 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Wed, 18 Aug 2021 22:18:49 +0300 Subject: [PATCH] Update AABB.hpp --- module/Base/AABB.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/Base/AABB.hpp b/module/Base/AABB.hpp index e80874cc..32dfc0e6 100644 --- a/module/Base/AABB.hpp +++ b/module/Base/AABB.hpp @@ -264,7 +264,12 @@ struct AABB */ SQMOD_NODISCARD int32_t Cmp(SQFloat s) const { +#ifdef SQUSEDOUBLE + auto f = static_cast< Value >(s); + return Cmp(AABB(f, f, f, f, f, f)); +#else return Cmp(AABB(s, s, s, s, s, s)); +#endif } /* --------------------------------------------------------------------------------------------