X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmain.c;h=6626f7019e4b509e9aed316aa390d659828166e2;hb=6ea6dac4068909e5adc06102dd215539c64afef8;hp=74650e2b2809c1f19649ebbf2cc75a737d43d9fd;hpb=c4b26cf489dcc65a00bfcc05f7898700d2f0c9e4;p=rocksndiamonds.git diff --git a/src/main.c b/src/main.c index 74650e2b..6626f701 100644 --- a/src/main.c +++ b/src/main.c @@ -31,7 +31,7 @@ GC gc, clip_gc[NUM_PIXMAPS], tile_clip_gc; Pixmap pix[NUM_PIXMAPS]; Pixmap clipmask[NUM_PIXMAPS], tile_clipmask[NUM_TILES]; -#ifdef XPM_INCLUDE_FILE +#ifdef USE_XPM_LIBRARY XpmAttributes xpm_att[NUM_PICTURES]; #endif @@ -42,8 +42,14 @@ int sound_pipe[2]; int sound_device; char *sound_device_name = SOUND_DEVICE; int joystick_device = 0; -char *joystick_device_name[2] = { DEV_JOYSTICK_0, DEV_JOYSTICK_1 }; -char *level_directory = LEVEL_PATH; +char *joystick_device_name[MAX_PLAYERS] = +{ + DEV_JOYSTICK_0, + DEV_JOYSTICK_1, + DEV_JOYSTICK_2, + DEV_JOYSTICK_3 +}; + int width, height; char *program_name = NULL; @@ -108,14 +114,6 @@ struct SetupInfo setup; struct SetupFileList *setup_list = NULL; struct SetupFileList *level_setup_list = NULL; -struct JoystickInfo joystick[2] = -{ - { JOYSTICK_XLEFT, JOYSTICK_XRIGHT, JOYSTICK_XMIDDLE, - JOYSTICK_YUPPER, JOYSTICK_YLOWER, JOYSTICK_YMIDDLE }, - { JOYSTICK_XLEFT, JOYSTICK_XRIGHT, JOYSTICK_XMIDDLE, - JOYSTICK_YUPPER, JOYSTICK_YLOWER, JOYSTICK_YMIDDLE } -}; - /* data needed for playing sounds */ char *sound_name[NUM_SOUNDS] = {