Nuke mapstring and spawnparms from client_static_t.

They're completely useless. Even though spawnparms was sent over the
network, the server ignored it. mapstring was never read anywhere.
This commit is contained in:
Bill Currie 2012-05-24 20:17:41 +09:00
parent 1aa2c22169
commit b20daaf611
3 changed files with 1 additions and 23 deletions

View file

@ -100,10 +100,6 @@ typedef struct
{
cactive_t state;
// personalization data sent to server
char mapstring[MAX_QPATH];
char spawnparms[MAX_MAPSTRING]; // to restart a level
// file transfer from server
QFile *download;
char *downloadtempname;

View file

@ -316,8 +316,6 @@ CL_EstablishConnection (const char *host)
void
CL_SignonReply (void)
{
char str[8192];
Sys_MaskPrintf (SYS_DEV, "CL_SignonReply: %i\n", cls.signon);
switch (cls.signon) {
@ -336,8 +334,7 @@ CL_SignonReply (void)
va ("color %i %i\n", (cl_color->int_val) >> 4,
(cl_color->int_val) & 15));
MSG_WriteByte (&cls.message, clc_stringcmd);
snprintf (str, sizeof (str), "spawn %s", cls.spawnparms);
MSG_WriteString (&cls.message, str);
MSG_WriteString (&cls.message, "spawn");
break;
case so_begin:

View file

@ -263,7 +263,6 @@ nice_time (float time)
static void
Host_Map_f (void)
{
int i;
char name[MAX_QPATH];
const char *expanded;
QFile *f;
@ -299,13 +298,6 @@ Host_Map_f (void)
cl.loading = true;
CL_UpdateScreen (cl.time);
cls.mapstring[0] = 0;
for (i = 0; i < Cmd_Argc (); i++) {
strcat (cls.mapstring, Cmd_Argv (i));
strcat (cls.mapstring, " ");
}
strcat (cls.mapstring, "\n");
svs.serverflags = 0; // haven't completed an episode yet
strcpy (name, Cmd_Argv (1));
SV_SpawnServer (name);
@ -313,13 +305,6 @@ Host_Map_f (void)
return;
if (cls.state != ca_dedicated) {
strcpy (cls.spawnparms, "");
for (i = 2; i < Cmd_Argc (); i++) {
strcat (cls.spawnparms, Cmd_Argv (i));
strcat (cls.spawnparms, " ");
}
Cmd_ExecuteString ("connect local", src_command);
}
}