From 2c46bd49689446d40fc1b36a6caad39ab184ad36 Mon Sep 17 00:00:00 2001 From: CuteNoiRe <141606820+CuteNoiRe@users.noreply.github.com> Date: Sun, 4 Feb 2024 13:49:34 +0300 Subject: [PATCH] update engine --- code/cgame/cg_public.h | 2 +- code/qcommon/cvar.c | 2 +- code/qcommon/q_shared.h | 6 +++--- code/qcommon/qcommon.h | 6 +++--- code/qcommon/qfiles.h | 10 +++++----- code/renderer/tr_local.h | 12 ++++++------ 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/code/cgame/cg_public.h b/code/cgame/cg_public.h index b252768..2f2e0ab 100644 --- a/code/cgame/cg_public.h +++ b/code/cgame/cg_public.h @@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // needs to be larger than PACKET_BACKUP -#define MAX_ENTITIES_IN_SNAPSHOT 8192 +#define MAX_ENTITIES_IN_SNAPSHOT 4096 // snapshots are a view of the server at a given time diff --git a/code/qcommon/cvar.c b/code/qcommon/cvar.c index db02eb5..c3e970e 100644 --- a/code/qcommon/cvar.c +++ b/code/qcommon/cvar.c @@ -29,7 +29,7 @@ static cvar_t *cvar_cheats; static cvar_t *cvar_developer; int cvar_modifiedFlags; -#define MAX_CVARS 65536 +#define MAX_CVARS 16384 static cvar_t cvar_indexes[MAX_CVARS]; static int cvar_numIndexes; diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h index 93972a7..40ccef5 100644 --- a/code/qcommon/q_shared.h +++ b/code/qcommon/q_shared.h @@ -1088,10 +1088,10 @@ typedef enum { // // per-level limits // -#define MAX_CLIENTS 400 // absolute limit +#define MAX_CLIENTS 256 // absolute limit #define MAX_LOCATIONS 64 -#define GENTITYNUM_BITS 13 // don't need to send any more +#define GENTITYNUM_BITS 12 // don't need to send any more #define MAX_GENTITIES (1<