From bae9506ba490ecdf654122ece0efdf45a8a8eca2 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 21 Apr 2022 10:09:12 +0200 Subject: Changed to const as MSVC does not define constexpr sin --- KeyboardController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KeyboardController.cpp b/KeyboardController.cpp index 18b548b..cae86f7 100644 --- a/KeyboardController.cpp +++ b/KeyboardController.cpp @@ -5,7 +5,7 @@ #include -static constexpr float DIAGONAL {std::sin(M_PI / 4.0f)}; +static const float DIAGONAL {std::sin(static_cast(M_PI) / 4.0f)}; static int check_axis(int negative_key, int positive_key, int last); -- cgit v1.1