amputate an 8M cacerous growth from the memory footprint of the clients

This commit is contained in:
Bill Currie 2001-02-08 19:24:27 +00:00
parent 6da731fec1
commit b10b829260
9 changed files with 9 additions and 7 deletions

View file

@ -381,6 +381,7 @@ extern cvar_t *fraglimit;
extern cvar_t *timelimit; extern cvar_t *timelimit;
extern server_static_t svs; // persistant server info extern server_static_t svs; // persistant server info
extern char *svs_info; // evil memory saving hack :)
extern server_t sv; // local server extern server_t sv; // local server
extern client_t *host_client; extern client_t *host_client;

View file

@ -63,6 +63,7 @@
#include "host.h" #include "host.h"
qboolean is_server = false; qboolean is_server = false;
char *svs_info;
int starttime; int starttime;

View file

@ -51,6 +51,7 @@
int noconinput = 0; int noconinput = 0;
qboolean is_server = false; qboolean is_server = false;
char *svs_info;
#ifdef PACKET_LOGGING #ifdef PACKET_LOGGING
void Net_LogStop (void); void Net_LogStop (void);

View file

@ -49,6 +49,7 @@
#include "vid.h" #include "vid.h"
qboolean is_server = false; qboolean is_server = false;
char *svs_info;
#define MINIMUM_WIN_MEMORY 0x0c00000 #define MINIMUM_WIN_MEMORY 0x0c00000
#define MAXIMUM_WIN_MEMORY 0x1000000 #define MAXIMUM_WIN_MEMORY 0x1000000

View file

@ -1031,7 +1031,7 @@ COM_Gamedir_f (void)
COM_Gamedir (dir); COM_Gamedir (dir);
if (is_server) { if (is_server) {
Info_SetValueForStarKey (svs.info, "*gamedir", dir, Info_SetValueForStarKey (svs_info, "*gamedir", dir,
MAX_SERVERINFO_STRING); MAX_SERVERINFO_STRING);
} }
} }

View file

@ -59,6 +59,8 @@ cvar_t *sys_dead_sleep;
qboolean is_server = true; qboolean is_server = true;
qboolean stdin_ready; qboolean stdin_ready;
server_static_t svs;
char *svs_info = svs.info;
/* /*

View file

@ -43,6 +43,8 @@
qboolean is_server = true; qboolean is_server = true;
qboolean WinNT; qboolean WinNT;
server_static_t svs;
char *svs_info = svs.info;
extern cvar_t *sys_nostdout; extern cvar_t *sys_nostdout;
cvar_t *sys_sleep; cvar_t *sys_sleep;

View file

@ -50,9 +50,6 @@
#include "server.h" #include "server.h"
#include "sys.h" #include "sys.h"
/* This is unused in the client, but we need the symbol there too. */
server_static_t svs;
cvar_t *sys_nostdout; cvar_t *sys_nostdout;
/* The translation table between the graphical font and plain ASCII --KB */ /* The translation table between the graphical font and plain ASCII --KB */

View file

@ -36,9 +36,6 @@
#include "server.h" #include "server.h"
/* This is unused in the client, but we need the symbol there too. */
server_static_t svs;
cvar_t *sys_nostdout; cvar_t *sys_nostdout;
/* The translation table between the graphical font and plain ASCII --KB */ /* The translation table between the graphical font and plain ASCII --KB */