From 019922dcf173f740a74fee5cb7a5169e2e7cc672 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 29 Jul 2021 18:38:07 +1000 Subject: [PATCH] - Fix constexpr issue with `interpolatedanglef()` since `fmod()` isn't available as constexpr. --- source/core/binaryangle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/binaryangle.h b/source/core/binaryangle.h index 830bf6912..545b940ab 100644 --- a/source/core/binaryangle.h +++ b/source/core/binaryangle.h @@ -387,7 +387,7 @@ inline constexpr int32_t interpolatedangle(int32_t oang, int32_t ang, int const return oang + MulScale(((ang + 1024 - oang) & 2047) - 1024, smoothratio, scale); } -inline constexpr double interpolatedanglef(double oang, double ang, double const smoothratio, int const scale = 16) +inline double interpolatedanglef(double oang, double ang, double const smoothratio, int const scale = 16) { return oang + MulScaleF(fmod((ang + 1024. - oang), 2048.) - 1024., smoothratio, scale); }