diff --git a/common/gl_draw.c b/common/gl_draw.c index 2b0d1aa..6aac309 100644 --- a/common/gl_draw.c +++ b/common/gl_draw.c @@ -1,4 +1,5 @@ /* +gl_draw.c - GL renderer draw routines Copyright (C) 1996-1997 Id Software, Inc. Copyright (C) 1999,2000 contributors of the QuakeForge project Please see the file "AUTHORS" for a list of contributors @@ -20,20 +21,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// draw.c -- this is the only file outside the refresh that touches the -// vid buffer - -#include "qtypes.h" -#include "quakedef.h" -#include "cvar.h" -#include "wad.h" -#include "glquake.h" -#include "console.h" -#include "sbar.h" +#include +#include +#include +#include +#include +#include +#include #include #include #include +#undef HIPFIX + extern unsigned char d_15to8table[65536]; extern cvar_t crosshair, cl_crossx, cl_crossy, crosshaircolor; @@ -231,6 +231,7 @@ qpic_t *Draw_PicFromWad (char *name) p = W_GetLumpName (name); gl = (glpic_t *)p->data; +#ifndef HIPFIX // load little ones into the scrap if (p->width < 64 && p->height < 64) { @@ -255,6 +256,7 @@ qpic_t *Draw_PicFromWad (char *name) pic_texels += p->width*p->height; } else +#endif { gl->texnum = GL_LoadPicTexture (p); gl->sl = 0; diff --git a/qw_client/cl_main.c b/qw_client/cl_main.c index 33cff65..4fd21f3 100644 --- a/qw_client/cl_main.c +++ b/qw_client/cl_main.c @@ -1,4 +1,5 @@ /* +cl_main.c - client main loop Copyright (C) 1996-1997 Id Software, Inc. Portions Copyright (C) 1999,2000 Nelson Rush. Copyright (C) 1999,2000 contributors of the QuakeForge project @@ -20,7 +21,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// cl_main.c -- client main loop /* Will have problems with isspace() when comiling w/ gcc on SGI without this */ #ifdef sgi @@ -34,22 +34,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #undef _LINT #endif -#include "quakedef.h" -#include "winquake.h" -#include "pmove_simple.h" -#include "qtypes.h" -#include "client.h" -#include "menu.h" -#include "console.h" -#include "cvar.h" -#include "mathlib.h" -#include "keys.h" -#include "sound.h" -#include "input.h" -#include "screen.h" -#include "view.h" -#include "sbar.h" -#include "cdaudio.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifdef __sun /* Sun's model_t in sys/model.h conflicts w/ Quake's model_t */ @@ -57,7 +57,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #endif #ifdef _WIN32 -#include "winsock.h" +#include #else #include #include diff --git a/qw_client/cl_parse.c b/qw_client/cl_parse.c index d4a1b82..2e7ef60 100644 --- a/qw_client/cl_parse.c +++ b/qw_client/cl_parse.c @@ -1,4 +1,5 @@ /* +cl_parse.c - parse a message received from the server Copyright (C) 1996-1997 Id Software, Inc. Portions Copyright (C) 1999,2000 Nelson Rush. Copyright (C) 1999,2000 contributors of the QuakeForge project @@ -20,18 +21,17 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// cl_parse.c -- parse a message received from the server -#include "qtypes.h" -#include "quakedef.h" -#include "model.h" -#include "pmove.h" -#include "console.h" -#include "mathlib.h" -#include "sound.h" -#include "cdaudio.h" -#include "sbar.h" -#include "screen.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include char *svc_strings[] = @@ -558,6 +558,12 @@ void CL_ParseServerData (void) cl.servercount = MSG_ReadLong (); + // gametype is always GAME_DEATHMATCH in QW + cl.gametype = GAME_DEATHMATCH; + + // maxclients is irrelivant in QW + cl.maxclients = 0; + // game directory str = MSG_ReadString (); diff --git a/qw_common/bothdefs.h b/qw_common/bothdefs.h index eb8ea05..3a98059 100644 --- a/qw_common/bothdefs.h +++ b/qw_common/bothdefs.h @@ -1,4 +1,5 @@ /* +bothdefs.h - defs common to qw client and server Copyright (C) 1996-1997 Id Software, Inc. Copyright (C) 1999,2000 contributors of the QuakeForge project Please see the file "AUTHORS" for a list of contributors @@ -20,7 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// defs common to client and server #ifndef _BOTHDEFS_H @@ -104,9 +104,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // // item flags // -#define IT_SHOTGUN 1 +#define IT_SHOTGUN 1 #define IT_SUPER_SHOTGUN 2 -#define IT_NAILGUN 4 +#define IT_NAILGUN 4 #define IT_SUPER_NAILGUN 8 #define IT_GRENADE_LAUNCHER 16 @@ -114,33 +114,79 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define IT_LIGHTNING 64 #define IT_SUPER_LIGHTNING 128 -#define IT_SHELLS 256 -#define IT_NAILS 512 -#define IT_ROCKETS 1024 -#define IT_CELLS 2048 +#define IT_SHELLS 256 +#define IT_NAILS 512 +#define IT_ROCKETS 1024 +#define IT_CELLS 2048 -#define IT_AXE 4096 +#define IT_AXE 4096 -#define IT_ARMOR1 8192 -#define IT_ARMOR2 16384 -#define IT_ARMOR3 32768 +#define IT_ARMOR1 8192 +#define IT_ARMOR2 16384 +#define IT_ARMOR3 32768 #define IT_SUPERHEALTH 65536 -#define IT_KEY1 131072 -#define IT_KEY2 262144 +#define IT_KEY1 131072 +#define IT_KEY2 262144 #define IT_INVISIBILITY 524288 #define IT_INVULNERABILITY 1048576 -#define IT_SUIT 2097152 -#define IT_QUAD 4194304 +#define IT_SUIT 2097152 +#define IT_QUAD 4194304 -#define IT_SIGIL1 (1<<28) +#define IT_SIGIL1 (1<<28) + +#define IT_SIGIL2 (1<<29) +#define IT_SIGIL3 (1<<30) +#define IT_SIGIL4 (1<<31) + +// +// Rogue changed/added defines +// + +#define RIT_SHELLS 128 +#define RIT_NAILS 256 +#define RIT_ROCKETS 512 +#define RIT_CELLS 1024 + +#define RIT_AXE 2048 + +#define RIT_LAVA_NAILGUN 4096 +#define RIT_LAVA_SUPER_NAILGUN 8192 +#define RIT_MULTI_GRENADE 16384 +#define RIT_MULTI_ROCKET 32768 +#define RIT_PLASMA_GUN 65536 + +#define RIT_ARMOR1 8388608 +#define RIT_ARMOR2 16777216 +#define RIT_ARMOR3 33554432 + +#define RIT_LAVA_NAILS 67108864 +#define RIT_PLASMA_AMMO 134217728 +#define RIT_MULTI_ROCKETS 268435456 + +#define RIT_SHIELD 536870912 +#define RIT_ANTIGRAV 1073741824 +#define RIT_SUPERHEALTH 2147483648 + + +// +// Hipnotic added defines +// + +#define HIT_PROXIMITY_GUN_BIT 16 +#define HIT_MJOLNIR_BIT 7 +#define HIT_LASER_CANNON_BIT 23 +#define HIT_WETSUIT_BIT 25 +#define HIT_EMPATHY_SHIELDS_BIT 26 +#define HIT_PROXIMITY_GUN (1< -#include "common.h" -#include "crc.h" -#include "sys.h" -#include "cmd.h" -#include "console.h" +#include +#include +#include +#include +#include #ifdef SERVERONLY -#include "qwsvdef.h" +#include #else -#include "quakedef.h" +#include #endif #include "config.h" diff --git a/qw_common/common.h b/qw_common/common.h index a65bcff..1632d84 100644 --- a/qw_common/common.h +++ b/qw_common/common.h @@ -1,4 +1,5 @@ /* +common.h - general definitions Copyright (C) 1996-1997 Id Software, Inc. Copyright (C) 1999,2000 contributors of the QuakeForge project Please see the file "AUTHORS" for a list of contributors @@ -19,14 +20,13 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// comndef.h -- general definitions #ifndef _COMMON_H #define _COMMON_H #include #include -#include "qtypes.h" +#include #define MAX_INFO_STRING 196 #define MAX_SERVERINFO_STRING 512 @@ -43,7 +43,7 @@ typedef struct sizebuf_s int cursize; } sizebuf_t; -#include "net.h" +#include void SZ_Clear (sizebuf_t *buf); void *SZ_GetSpace (sizebuf_t *buf, int length); void SZ_Write (sizebuf_t *buf, void *data, int length); @@ -87,7 +87,7 @@ void InsertLinkAfter (link_t *l, link_t *after); //============================================================================ -#include "qendian.h" +#include //============================================================================ @@ -126,7 +126,7 @@ void MSG_ReadDeltaUsercmd (struct usercmd_s *from, struct usercmd_s *cmd); //============================================================================ -#include "lib_replace.h" +#include //============================================================================ @@ -156,7 +156,7 @@ char *va(char *format, ...); //============================================================================ -#include "quakefs.h" +#include extern qboolean standard_quake, rogue, hipnotic; diff --git a/qw_common/protocol.h b/qw_common/protocol.h index 60ba277..228b207 100644 --- a/qw_common/protocol.h +++ b/qw_common/protocol.h @@ -55,6 +55,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define A2C_CLIENT_COMMAND 'B' // + command line #define S2M_SHUTDOWN 'C' +// game types sent by serverinfo +// these determine which intermission screen plays +#define GAME_COOP 0 +#define GAME_DEATHMATCH 1 //================== // note that there are some defs.qc that mirror to these numbers diff --git a/qw_common/quakedef.h b/qw_common/quakedef.h index 1aa1d89..9d83781 100644 --- a/qw_common/quakedef.h +++ b/qw_common/quakedef.h @@ -1,4 +1,5 @@ /* +quakedef.h - primary header for client Copyright (C) 1996-1997 Id Software, Inc. Copyright (C) 1999,2000 contributors of the QuakeForge project Please see the file "AUTHORS" for a list of contributors @@ -19,15 +20,14 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// quakedef.h -- primary header for client #ifndef _QW_COMMON_QUAKEDEF_H #define _QW_COMMON_QUAKEDEF_H #include -#include "bothdefs.h" -#include "pmove.h" +#include +#include extern cvar_t password; diff --git a/qw_server/sv_main.c b/qw_server/sv_main.c index 8cd7882..e2e4e43 100644 --- a/qw_server/sv_main.c +++ b/qw_server/sv_main.c @@ -1,4 +1,5 @@ /* +sv_main.c - QW main server loop Copyright (C) 1996-1997 Id Software, Inc. Portions Copyright (C) 1999,2000 Nelson Rush. Copyright (C) 1999,2000 contributors of the QuakeForge project @@ -21,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "qwsvdef.h" +#include #ifdef HAVE_STRINGS_H #include @@ -1666,8 +1667,8 @@ SV_Init void SV_Init (quakeparms_t *parms) { COM_InitArgv (parms->argc, parms->argv); - COM_AddParm ("-game"); - COM_AddParm ("qw"); +// COM_AddParm ("-game"); +// COM_AddParm ("qw"); if (COM_CheckParm ("-minmemory")) parms->memsize = MINIMUM_MEMORY;