summaryrefslogtreecommitdiffhomepage
path: root/KeyboardController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'KeyboardController.cpp')
-rw-r--r--KeyboardController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/KeyboardController.cpp b/KeyboardController.cpp
index cae86f7..15ed1ff 100644
--- a/KeyboardController.cpp
+++ b/KeyboardController.cpp
@@ -1,11 +1,11 @@
#include "KeyboardController.h"
-#include <cmath>
+#include <math.h>
#include <raylib.h>
-static const float DIAGONAL {std::sin(static_cast<float>(M_PI) / 4.0f)};
+static const float DIAGONAL {static_cast<float>(sin(static_cast<float>(M_PI) / 4.0f))};
static int check_axis(int negative_key, int positive_key, int last);