mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-01-31 20:50:36 +00:00
qw-server now compiles and links
This commit is contained in:
parent
ce9580f237
commit
e713452ba5
16 changed files with 149 additions and 53 deletions
|
@ -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))
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
/*
|
||||
=============================================================================
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
||||
/*
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue