From 431a94057c8e3451e87962256597f6db0a78c90c Mon Sep 17 00:00:00 2001 From: Andrew Mickelson Date: Fri, 17 Jan 2020 21:04:39 -0800 Subject: [PATCH] Fix joystick guard test --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index a0516dcb0..335b3ad56 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -402,8 +402,8 @@ int main(int argc, char *argv[]) // if (( guard_joyid >= 0 ) && ( std::abs( sf::Joystick::getAxisPosition( - guard_joyid, (sf::Joystick::Axis)guard_axis ) - < feSettings.get_joy_thresh() ))) + guard_joyid, (sf::Joystick::Axis)guard_axis )) + < feSettings.get_joy_thresh() )) { guard_joyid = -1; guard_axis = -1;