summaryrefslogtreecommitdiffhomepage
path: root/KeyboardController.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-21 10:09:12 +0200
committerAki <please@ignore.pl>2022-04-21 10:09:12 +0200
commitbae9506ba490ecdf654122ece0efdf45a8a8eca2 (patch)
tree9524a3b394563d01c3a26f2f492d14d480f469a6 /KeyboardController.cpp
parent915dd2a9acda9c505ad82bd2dd8df282670ed5fd (diff)
downloadbullethell2022-bae9506ba490ecdf654122ece0efdf45a8a8eca2.zip
bullethell2022-bae9506ba490ecdf654122ece0efdf45a8a8eca2.tar.gz
bullethell2022-bae9506ba490ecdf654122ece0efdf45a8a8eca2.tar.bz2
Changed to const as MSVC does not define constexpr sin
Diffstat (limited to 'KeyboardController.cpp')
-rw-r--r--KeyboardController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/KeyboardController.cpp b/KeyboardController.cpp
index 18b548b..cae86f7 100644
--- a/KeyboardController.cpp
+++ b/KeyboardController.cpp
@@ -5,7 +5,7 @@
#include <raylib.h>
-static constexpr float DIAGONAL {std::sin(M_PI / 4.0f)};
+static const float DIAGONAL {std::sin(static_cast<float>(M_PI) / 4.0f)};
static int check_axis(int negative_key, int positive_key, int last);