qw-server now compiles and links

This commit is contained in:
Bill Currie 2000-02-11 04:55:11 +00:00
parent ce9580f237
commit e713452ba5
16 changed files with 149 additions and 53 deletions

View File

@ -20,23 +20,19 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef QUAKEWORLD
# include <qwsvdef.h>
#elif UQUAKE
# include <client.h>
# include <server.h>
# include <world.h>
# include <progs.h>
# include <quakedef.h>
#endif
#include <ctype.h>
#include <quakedef.h>
#include <qtypes.h>
#include <mathlib.h>
#include <cvar.h>
#include <protocol.h>
#include <net.h>
#include <cmd.h>
#include <sys.h>
#include <console.h>
#include <protocol.h>
#include <server.h>
#include <phys.h>
#include <mathlib.h>
#include <world.h>
#define RETURN_EDICT(e) (((int *)pr_globals)[OFS_RETURN] = EDICT_TO_PROG(e))

View File

@ -22,24 +22,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef QUAKEWORLD
#include <qwsvdef.h>
#elif UQUAKE
# include <client.h>
# include <server.h>
# include <world.h>
# include <progs.h>
# include <quakedef.h>
#endif
#include <ctype.h>
#include <quakedef.h>
#include <qtypes.h>
#include <lib_replace.h>
#include <mathlib.h>
#include <sys.h>
#include <net.h>
#include <cmd.h>
#include <crc.h>
#include <cvar.h>
#include <sys.h>
#include <console.h>
#include <protocol.h>
#include <server.h>
#include <phys.h>
#include <mathlib.h>
#include <world.h>
#include <crc.h>
dprograms_t *progs;
dfunction_t *pr_functions;

View File

@ -20,18 +20,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef QUAKEWORLD
#include <qwsvdef.h>
#elif UQUAKE
# include <client.h>
# include <server.h>
# include <world.h>
# include <progs.h>
# include <quakedef.h>
#endif
#include <ctype.h>
#include <quakedef.h>
#include <qtypes.h>
#include <net.h>
#include <cmd.h>
#include <sys.h>
#include <console.h>
#include <protocol.h>
#include <server.h>
#include <phys.h>
#include <mathlib.h>
#include <world.h>
#include <crc.h>
typedef struct
{

View File

@ -21,8 +21,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// comndef.h -- general definitions
#ifndef _COMMON_H
#define _COMMON_H
#ifndef _QARGS_H
#define _QARGS_H
#include "qtypes.h"
@ -35,4 +35,4 @@ void COM_AddParm (char *parm);
void COM_Init (void);
void COM_InitArgv (int argc, char **argv);
#endif // _COMMON_H
#endif // _QARGS_H

View File

@ -55,6 +55,8 @@ typedef enum {
// some qc commands are only valid before the server has finished
// initializing (precache commands, static sounds / objects, etc)
struct qsocket_s;
#ifdef QUAKEWORLD
typedef struct
{

View File

@ -21,9 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef SERVERONLY
#include "qwsvdef.h"
#endif
#include <quakedef.h>
#include <qtypes.h>
#include <sys.h>

View File

@ -25,7 +25,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// models are the only shared resource between a client and server running
// on the same machine.
#include "qwsvdef.h"
#include <string.h>
#include <model.h>
#include <qendian.h>
#include <quakefs.h>
#include <common.h>
#include <protocol.h>
#include <server.h>
#include <mathlib.h>
model_t *loadmodel;
char loadname[32]; // for hunk tags

View File

@ -21,7 +21,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "qwsvdef.h"
#include <ctype.h>
#include <quakedef.h>
#include <qtypes.h>
#include <net.h>
#include <cmd.h>
#include <sys.h>
#include <console.h>
#include <protocol.h>
#include <server.h>
#include <phys.h>
#include <mathlib.h>
#include <world.h>
qboolean sv_allow_cheats;

View File

@ -20,7 +20,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "qwsvdef.h"
#include <ctype.h>
#include <quakedef.h>
#include <qtypes.h>
#include <net.h>
#include <cmd.h>
#include <sys.h>
#include <console.h>
#include <protocol.h>
#include <server.h>
#include <phys.h>
#include <mathlib.h>
#include <world.h>
/*
=============================================================================

View File

@ -21,7 +21,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "qwsvdef.h"
#include <ctype.h>
#include <quakedef.h>
#include <qtypes.h>
#include <net.h>
#include <cmd.h>
#include <sys.h>
#include <console.h>
#include <protocol.h>
#include <server.h>
#include <phys.h>
#include <mathlib.h>
#include <world.h>
#include <crc.h>
server_static_t svs; // persistant server info
server_t sv; // local server

View File

@ -21,7 +21,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// sv_move.c -- monster movement
#include "qwsvdef.h"
#include <ctype.h>
#include <quakedef.h>
#include <qtypes.h>
#include <net.h>
#include <cmd.h>
#include <sys.h>
#include <console.h>
#include <protocol.h>
#include <server.h>
#include <phys.h>
#include <mathlib.h>
#include <world.h>
#define STEPSIZE 18

View File

@ -21,7 +21,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// sv_nchan.c, user reliable data stream writes
#include "qwsvdef.h"
#include <ctype.h>
#include <quakedef.h>
#include <qtypes.h>
#include <net.h>
#include <cmd.h>
#include <sys.h>
#include <console.h>
#include <protocol.h>
#include <server.h>
#include <phys.h>
#include <mathlib.h>
#include <world.h>
// check to see if client block will fit, if not, rotate buffers
void ClientReliableCheckBlock(client_t *cl, int maxsize)

View File

@ -21,7 +21,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// sv_phys.c
#include "qwsvdef.h"
#include <ctype.h>
#include <quakedef.h>
#include <qtypes.h>
#include <net.h>
#include <cmd.h>
#include <sys.h>
#include <console.h>
#include <protocol.h>
#include <server.h>
#include <phys.h>
#include <mathlib.h>
#include <world.h>
/*

View File

@ -21,7 +21,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// sv_main.c -- server main program
#include "qwsvdef.h"
#include <ctype.h>
#include <quakedef.h>
#include <qtypes.h>
#include <net.h>
#include <cmd.h>
#include <sys.h>
#include <console.h>
#include <protocol.h>
#include <server.h>
#include <phys.h>
#include <mathlib.h>
#include <world.h>
#define CHAN_AUTO 0
#define CHAN_WEAPON 1

View File

@ -22,7 +22,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// sv_user.c -- server code for moving users
#include "qwsvdef.h"
#include <ctype.h>
#include <quakedef.h>
#include <qtypes.h>
#include <net.h>
#include <cmd.h>
#include <sys.h>
#include <console.h>
#include <protocol.h>
#include <server.h>
#include <phys.h>
#include <mathlib.h>
#include <world.h>
edict_t *sv_player;

View File

@ -20,7 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <sys/types.h>
#include "qwsvdef.h"
#ifdef NeXT
#include <libc.h>
@ -39,6 +38,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#include <stdarg.h>
#include <malloc.h>
#include <cvar.h>
#include <qstructs.h>
#include <qargs.h>
#include <common.h>
#include <protocol.h>
#include <server.h>
#include <sys.h>
extern cvar_t sys_nostdout;