mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
73e62de2fb
I had forgotten that the cl structs in nq and qw were different layouts, which resulted in qw's sbar/hud being quite broken. Rather than messing with the structs, I decided it would be far better in the long run to clean up sbar's access to the cl struct and the few other nq/qw specific globals it used. There are still plenty of bugs to fix, but now almost everything is in the one place.
68 lines
1.7 KiB
C
68 lines
1.7 KiB
C
/*
|
|
#FILENAME#
|
|
|
|
Definitions common to client and server
|
|
|
|
Copyright (C) 1996-1997 Id Software, Inc.
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to:
|
|
|
|
Free Software Foundation, Inc.
|
|
59 Temple Place - Suite 330
|
|
Boston, MA 02111-1307, USA
|
|
|
|
*/
|
|
|
|
#ifndef _BOTHDEFS_H
|
|
#define _BOTHDEFS_H
|
|
|
|
|
|
#define MINIMUM_MEMORY 0x400000 // Error out if we get less than 4MB
|
|
|
|
|
|
|
|
#define MAX_SCOREBOARD 16 // max numbers of players
|
|
|
|
#define SOUND_CHANNELS 8
|
|
|
|
|
|
#define MAX_QPATH 64 // max length of a quake game pathname
|
|
#define MAX_OSPATH 128 // max length of a filesystem pathname
|
|
|
|
#define ON_EPSILON 0.1 // point on plane side epsilon
|
|
|
|
//
|
|
// per-level limits
|
|
//
|
|
#define MAX_EDICTS 768 // FIXME: ouch! ouch! ouch!
|
|
#define MAX_LIGHTSTYLES 64
|
|
#define MAX_MODELS 256 // these are sent over the net as bytes
|
|
#define MAX_SOUNDS 256 // so they cannot be blindly increased
|
|
|
|
#define SAVEGAME_COMMENT_LENGTH 39
|
|
|
|
#define MAX_STYLESTRING 64
|
|
|
|
#include "gamedefs.h"
|
|
|
|
//
|
|
// print flags
|
|
//
|
|
#define PRINT_LOW 0 // pickup messages
|
|
#define PRINT_MEDIUM 1 // death messages
|
|
#define PRINT_HIGH 2 // critical messages
|
|
#define PRINT_CHAT 3 // chat messages
|
|
|
|
#endif // _BOTHDEFS_H
|