X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fjoystick.c;h=8392a8a15daffab9868dd721b5d77592eee19625;hb=29014045f4de045f8452fdf7ab32622c94b37eef;hp=0e1a42cd969b056933bd5589f6cc3e403fe4bc07;hpb=f9b768303c640858ba5192babe50ba85eab9a8a4;p=rocksndiamonds.git diff --git a/src/joystick.c b/src/joystick.c index 0e1a42cd..8392a8a1 100644 --- a/src/joystick.c +++ b/src/joystick.c @@ -16,6 +16,7 @@ #endif #include "joystick.h" +#include "misc.h" /* #include "tools.h" @@ -93,8 +94,7 @@ int Joystick() #ifndef MSDOS if (read(joystick_device, &joy_ctrl, sizeof(joy_ctrl)) != sizeof(joy_ctrl)) { - fprintf(stderr,"%s: cannot read joystick settings - no joystick support\n", - progname); + Error(ERR_RETURN, "cannot read joystick settings - no joystick support"); joystick_status = JOYSTICK_OFF; return(0); }