re-enable autoexec.cfg running on gamedir (defaults to off. need to put set cl_autexec either in quakeforge.conf or on the command line)

This commit is contained in:
Bill Currie 2000-05-23 11:29:15 +00:00
parent d7f0ffef60
commit fd35f176ba
2 changed files with 5 additions and 5 deletions

View file

@ -44,6 +44,7 @@
/* extern cvar_t gl_flashblend;
CVAR_FIXME */
extern cvar_t *gl_flashblend;
extern cvar_t *cl_autoexec;
char *svc_strings[] =
{
@ -596,14 +597,14 @@ void CL_ParseServerData (void)
Cbuf_AddText ("cl_warncmd 0\n");
Cbuf_AddText ("exec frontend.cfg\n");
}
/* if (cl_autoexec->value) {
if (cl_autoexec->value) {
snprintf(fn, sizeof(fn), "%s/%s", com_gamedir, "autoexec.cfg");
if ((f = Qopen(fn, "r")) != NULL) {
Qclose(f);
Cbuf_AddText ("cl_warncmd 0\n");
Cbuf_AddText ("exec autoexec.cfg\n");
}
} */
}
snprintf(fn,sizeof(fn), "cl_warncmd %d\n", cl_warncmd_val);
Cbuf_AddText(fn);
}