summaryrefslogtreecommitdiffstats
path: root/game/client/config
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-14 19:16:44 +0500
committeruntodesu <kirill@untode.su>2025-09-14 19:16:44 +0500
commit8bcbd2729388edc63c82d77d314b583af1447c49 (patch)
tree460c2b509372077f6adf95d72c4245988a580aed /game/client/config
parent7fc7fdb001bea8674fe0dbc1b962f3ec2702debb (diff)
downloadvoxelius-8bcbd2729388edc63c82d77d314b583af1447c49.tar.bz2
voxelius-8bcbd2729388edc63c82d77d314b583af1447c49.zip
Cleanup math with qfengine ports again
Diffstat (limited to 'game/client/config')
-rw-r--r--game/client/config/gamepad_axis.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/client/config/gamepad_axis.cc b/game/client/config/gamepad_axis.cc
index c782c19..9cc731c 100644
--- a/game/client/config/gamepad_axis.cc
+++ b/game/client/config/gamepad_axis.cc
@@ -99,7 +99,7 @@ float config::GamepadAxis::get_value(const GLFWgamepadstate& state, float deadzo
if(m_gamepad_axis <= math::array_size(state.axes)) {
auto value = state.axes[m_gamepad_axis];
- if(math::abs(value) > deadzone) {
+ if(glm::abs(value) > deadzone) {
return m_inverted ? -value : value;
}