mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
-dedicated fixes
This commit is contained in:
parent
87e59c0762
commit
630e064150
2 changed files with 6 additions and 5 deletions
|
@ -983,8 +983,8 @@ Host_Init (quakeparms_t *parms)
|
||||||
CDAudio_Init ();
|
CDAudio_Init ();
|
||||||
Sbar_Init ();
|
Sbar_Init ();
|
||||||
CL_Init ();
|
CL_Init ();
|
||||||
|
CL_SetState (ca_disconnected);
|
||||||
}
|
}
|
||||||
CL_SetState (ca_disconnected);
|
|
||||||
|
|
||||||
if (cl_quakerc->int_val)
|
if (cl_quakerc->int_val)
|
||||||
Cbuf_InsertText ("exec quake.rc\n");
|
Cbuf_InsertText ("exec quake.rc\n");
|
||||||
|
@ -1026,12 +1026,11 @@ Host_Shutdown (void)
|
||||||
|
|
||||||
Host_WriteConfiguration ();
|
Host_WriteConfiguration ();
|
||||||
|
|
||||||
CDAudio_Shutdown ();
|
|
||||||
NET_Shutdown ();
|
NET_Shutdown ();
|
||||||
S_Shutdown ();
|
|
||||||
IN_Shutdown ();
|
|
||||||
|
|
||||||
if (cls.state != ca_dedicated) {
|
if (cls.state != ca_dedicated) {
|
||||||
|
CDAudio_Shutdown ();
|
||||||
|
S_Shutdown ();
|
||||||
|
IN_Shutdown ();
|
||||||
VID_Shutdown ();
|
VID_Shutdown ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -162,6 +162,8 @@ main (int c, const char *v[])
|
||||||
|
|
||||||
parms.memsize = 16 * 1024 * 1024;
|
parms.memsize = 16 * 1024 * 1024;
|
||||||
|
|
||||||
|
isDedicated = (COM_CheckParm ("-dedicated") != 0);
|
||||||
|
|
||||||
j = COM_CheckParm ("-mem");
|
j = COM_CheckParm ("-mem");
|
||||||
if (j)
|
if (j)
|
||||||
parms.memsize = (int) (atof (com_argv[j + 1]) * 1024 * 1024);
|
parms.memsize = (int) (atof (com_argv[j + 1]) * 1024 * 1024);
|
||||||
|
|
Loading…
Reference in a new issue