X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fjoystick.c;h=d5a78a290465dfa71730ab29d00de1fe7ef23e92;hp=b286de23732f769a220d7775d45b2efbfaadbd63;hb=61c3da0;hpb=e9306042d9ea3bc310590fe16653538905a9b99d diff --git a/src/libgame/joystick.c b/src/libgame/joystick.c index b286de23..d5a78a29 100644 --- a/src/libgame/joystick.c +++ b/src/libgame/joystick.c @@ -208,7 +208,7 @@ char *getDeviceNameFromJoystickNr(int joystick_nr) static int JoystickPositionPercent(int center, int border, int actual) { - long range, position; + int range, position; int percent; if (border < center && actual > center)