summaryrefslogtreecommitdiff
path: root/common/accel-jump.hpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-04-08 02:30:01 -0400
committera1xd <[email protected]>2021-04-08 02:30:01 -0400
commitc55d1bfd01147fa014ac07d4b03ef3cad8427ae6 (patch)
tree39ffa4a79bc6b019443521f10203f787c4b98698 /common/accel-jump.hpp
parentunmark fill as const (diff)
downloadrawaccel-c55d1bfd01147fa014ac07d4b03ef3cad8427ae6.tar.xz
rawaccel-c55d1bfd01147fa014ac07d4b03ef3cad8427ae6.zip
optimize a bit/refactor modify
Diffstat (limited to 'common/accel-jump.hpp')
-rw-r--r--common/accel-jump.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/accel-jump.hpp b/common/accel-jump.hpp
index 2d13cae..30f9a49 100644
--- a/common/accel-jump.hpp
+++ b/common/accel-jump.hpp
@@ -2,9 +2,6 @@
#include "rawaccel-base.hpp"
-#define _USE_MATH_DEFINES
-#include <math.h>
-
namespace rawaccel {
struct jump_base {
@@ -18,7 +15,7 @@ namespace rawaccel {
smooth_rate = 0;
}
else {
- smooth_rate = 2 * M_PI / (args.offset * args.smooth);
+ smooth_rate = 2 * PI / (args.offset * args.smooth);
}
}