From 8bcbd2729388edc63c82d77d314b583af1447c49 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sun, 14 Sep 2025 19:16:44 +0500 Subject: Cleanup math with qfengine ports again --- game/client/config/gamepad_axis.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/client/config/gamepad_axis.cc') 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; } -- cgit