X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fjoystick.c;h=d5a78a290465dfa71730ab29d00de1fe7ef23e92;hb=61c3da024802ecc0268bab42d7499fc0346e4fd3;hp=b286de23732f769a220d7775d45b2efbfaadbd63;hpb=e05dda5c8cc6687dcbc59e182a81aed627e262d0;p=rocksndiamonds.git 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)