-dedicated fixes

This commit is contained in:
Bill Currie 2001-10-03 17:25:21 +00:00
parent 87e59c0762
commit 630e064150
2 changed files with 6 additions and 5 deletions

View file

@ -983,8 +983,8 @@ Host_Init (quakeparms_t *parms)
CDAudio_Init ();
Sbar_Init ();
CL_Init ();
}
CL_SetState (ca_disconnected);
}
if (cl_quakerc->int_val)
Cbuf_InsertText ("exec quake.rc\n");
@ -1026,12 +1026,11 @@ Host_Shutdown (void)
Host_WriteConfiguration ();
CDAudio_Shutdown ();
NET_Shutdown ();
if (cls.state != ca_dedicated) {
CDAudio_Shutdown ();
S_Shutdown ();
IN_Shutdown ();
if (cls.state != ca_dedicated) {
VID_Shutdown ();
}
}

View file

@ -162,6 +162,8 @@ main (int c, const char *v[])
parms.memsize = 16 * 1024 * 1024;
isDedicated = (COM_CheckParm ("-dedicated") != 0);
j = COM_CheckParm ("-mem");
if (j)
parms.memsize = (int) (atof (com_argv[j + 1]) * 1024 * 1024);