1
0
Fork 0

fix two tiny bugs introduced by 4065.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4325
This commit is contained in:
Peter Veenstra 2020-02-14 21:20:31 +00:00
parent 5d7c4f0540
commit 4d4c738ca7

View file

@ -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;