CC = gcc
# on Solaris and similar systems, you'll need to uncomment this
-# EXTRA_LIBS = -lnsl -lsocket
+EXTRA_LIBS = -lnsl -lsocket
-# specify X11 library path on your system
-XLIB_PATH = /usr/X11/lib
+# specify path to X11 on your system
+# X11_PATH = /usr/X11
+X11_PATH = /local/X11
# change this to the directory where you want to install game data like levels
GAME_DIR = .
# LIBS = -L/usr/X11R6/lib -lX11 -lm
# LIBS = -L/usr/X11R6/lib $(EXTRA_X11_LIBS) -lX11 -lm $(EXTRA_LIBS)
-LIBS = -L$(XLIB_PATH) $(EXTRA_X11_LIBS) -lX11 -lm $(EXTRA_LIBS)
+
+XINC_PATH = $(X11_PATH)/include
+XLIB_PATH = $(X11_PATH)/lib
+
+INCL = -I$(XINC_PATH)
+LIBS = -L$(XLIB_PATH) $(EXTRA_X11_LIBS) -lX11 -lm $(EXTRA_LIBS) -R$(XLIB_PATH)
# CFLAGS = -O2 $(CONFIG) $(SYSTEM)
CFLAGS = $(DEBUG) $(CONFIG) $(SYSTEM) $(INCL)
backup:
./make_backup.sh
-
-depend:
- for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
-
-ifeq (.depend,$(wildcard .depend))
-include .depend
-endif
boolean AnimateToon(int toon_nr, boolean restart)
{
- static pos_x = 0, pos_y = 0;
- static delta_x = 0, delta_y = 0;
+ static int pos_x = 0, pos_y = 0;
+ static int delta_x = 0, delta_y = 0;
static int frame = 0, frame_step = 1;
static boolean horiz_move, vert_move;
static long anim_delay = 0;
static Colormap global_cmap = 0;
static Pixel *global_cmap_index;
static int num_cmap_entries, free_cmap_entries;
- static private_cmap = FALSE;
+ static boolean private_cmap = FALSE;
Pixel *redvalue, *greenvalue, *bluevalue;
unsigned int a, c=0, x, y, linelen, dpixlen, dbits;
XColor xcolor;
XCreateImage(display, visual, 1, XYBitmap, 0, (char *)data_mask,
image->width, image->height, 8, linelen);
-#if 0
+#if 1
if (visual->class == DirectColor || visual->class == TrueColor)
{
Pixel pixval;
tv.tv_sec = 0;
tv.tv_usec = 500000;
if ((sl = select(mfd + 1, &fds, NULL, NULL, &tv)) < 0)
+ {
if (errno != EINTR)
syserr("select");
- else continue;
-
+ else
+ continue;
+ }
+
if (sl < 0)
continue;
};
static int stereo_volume[PSND_MAX_LEFT2RIGHT+1];
static char premix_first_buffer[SND_BLOCKSIZE];
+#ifdef VOXWARE
static char premix_left_buffer[SND_BLOCKSIZE];
static char premix_right_buffer[SND_BLOCKSIZE];
static int premix_last_buffer[SND_BLOCKSIZE];
+#endif
static unsigned char playing_buffer[SND_BLOCKSIZE];
static int playing_sounds = 0;
#else