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 server_static_t svs; // persistant server info
extern char *svs_info; // evil memory saving hack :)
extern server_t sv; // local server
extern client_t *host_client;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -50,9 +50,6 @@
#include "server.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;
/* The translation table between the graphical font and plain ASCII --KB */

View File

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