From 5d66aa274c9bee2680657f02d3bcc15511d45a67 Mon Sep 17 00:00:00 2001 From: Dan Olson Date: Tue, 29 Feb 2000 00:00:51 +0000 Subject: [PATCH] A couple small fixes thanks to Dan Nelson --- qw_client/Makefile.in | 6 ++++++ qw_server/sv_init.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/qw_client/Makefile.in b/qw_client/Makefile.in index 6511444..338a394 100644 --- a/qw_client/Makefile.in +++ b/qw_client/Makefile.in @@ -327,6 +327,12 @@ $(BUILD_DIR)/$(addsuffix .@OBJEXT@,$(basename @X11_VID_SRC@ .c)):\ $(COMMON_DIR)/@X11_VID_SRC@ $(CC) $(CFLAGS) $(X11_CFLAGS) -o $@ -c $< +$(BUILD_DIR)/in_x11.@OBJEXT@: $(COMMON_DIR)/in_x11.c + $(CC) $(CFLAGS) $(X11_CFLAGS) -o $@ -c $< + +$(BUILD_DIR)/context_x11.@OBJEXT@: $(COMMON_DIR)/context_x11.c + $(CC) $(CFLAGS) $(X11_CFLAGS) -o $@ -c $< + $(X11QUAKE): $(BUILD_DIR)/../$(X11QUAKE) $(BUILD_DIR)/../$(X11QUAKE): $(ALL_X11_OBJS) diff --git a/qw_server/sv_init.c b/qw_server/sv_init.c index ea35257..63ba358 100644 --- a/qw_server/sv_init.c +++ b/qw_server/sv_init.c @@ -276,6 +276,8 @@ unsigned SV_CheckModel(char *mdl) // int len; buf = (byte *)COM_LoadStackFile (mdl, stackbuf, sizeof(stackbuf)); + if (!buf) + SV_Error ("SV_CheckModel: %s not found", mdl); crc = CRC_Block(buf, com_filesize); // for (len = com_filesize; len; len--, buf++) // CRC_ProcessByte(&crc, *buf);