X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Finit.c;h=df4099e162cedaa88202b97e56f9446deff7a692;hp=8cdbae4d60fb96a928fb0d5eb7ecd52e56b75b54;hb=41e8d55b767c898f20c29a1b0b8d2ef8840be2f5;hpb=f746cebc5f808a8ff752930763a13c3820b244f1 diff --git a/src/init.c b/src/init.c index 8cdbae4d..df4099e1 100644 --- a/src/init.c +++ b/src/init.c @@ -21,7 +21,6 @@ #include "tape.h" #include "tools.h" #include "files.h" -#include "joystick.h" #include "network.h" #include "netserv.h" @@ -84,10 +83,7 @@ void InitPlayerInfo() local_player = &stored_player[0]; for (i=0; iconnected = TRUE; @@ -155,10 +151,13 @@ void InitJoysticks() int i; - if (global_joystick_status == JOYSTICK_OFF) - return; + /* always start with reliable default values */ + joystick.status = JOYSTICK_NOT_AVAILABLE; + for (i=0; i