From 4d4c738ca7aeff51e11f5160a88f8ee26c9a0c13 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Fri, 14 Feb 2020 21:20:31 +0000 Subject: [PATCH] fix two tiny bugs introduced by 4065. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4325 --- src/hardware/joystick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/joystick.cpp b/src/hardware/joystick.cpp index f1dc22a1..a0a4bcc9 100644 --- a/src/hardware/joystick.cpp +++ b/src/hardware/joystick.cpp @@ -247,7 +247,7 @@ void JOYSTICK_Button(Bitu which,Bitu num,bool pressed) { } void JOYSTICK_Move_X(Bitu which,float x) { - if(which > 2) return; + if (which > 1) return; if (stick[which].xpos == x) return; stick[which].xpos = x; stick[which].transformed = false; @@ -256,7 +256,7 @@ void JOYSTICK_Move_X(Bitu which,float x) { } void JOYSTICK_Move_Y(Bitu which,float y) { - if(which > 2) return; + if (which > 1) return; if (stick[which].ypos == y) return; stick[which].ypos = y; stick[which].transformed = false;