casue autoexec.cfg to be executed in the new gamedir (after frontend.cfg)

also, clean up quakefs.c a little (minor)
This commit is contained in:
Bill Currie 2000-04-27 10:56:31 +00:00
parent e94c1488ac
commit 2e61dac258
2 changed files with 2 additions and 1 deletions

View File

@ -949,7 +949,7 @@ SV_Gamedir_f
Sets the gamedir and path to a different directory. Sets the gamedir and path to a different directory.
================ ================
*/ */
char gamedirfile[MAX_OSPATH];
void COM_Gamedir_f (void) void COM_Gamedir_f (void)
{ {
char *dir; char *dir;

View File

@ -583,6 +583,7 @@ void CL_ParseServerData (void)
Cbuf_AddText ("cl_warncmd 0\n"); Cbuf_AddText ("cl_warncmd 0\n");
Cbuf_AddText("exec config.cfg\n"); Cbuf_AddText("exec config.cfg\n");
Cbuf_AddText("exec frontend.cfg\n"); Cbuf_AddText("exec frontend.cfg\n");
Cbuf_AddText("exec autoexec.cfg\n");
Cbuf_AddText ("cl_warncmd 1\n"); Cbuf_AddText ("cl_warncmd 1\n");
} }
} }