d'oh, COM_FOpenFile could probably do with a re-design of its api :P

This commit is contained in:
Bill Currie 2002-11-08 03:27:05 +00:00
parent 62bbd0228a
commit 864b181b99
2 changed files with 4 additions and 2 deletions

View file

@ -226,7 +226,8 @@ map_cfg (const char *mapname, int all)
COM_StripExtension (mapname, name);
strcat (name, ".cfg");
if (COM_FOpenFile (name, &f)) {
COM_FOpenFile (name, &f);
if (f) {
Qclose (f);
Cmd_Exec_File (host_cbuf, name);
} else {

View file

@ -261,7 +261,8 @@ map_cfg (const char *mapname, int all)
COM_StripExtension (mapname, name);
strcat (name, ".cfg");
if (COM_FOpenFile (name, &f)) {
COM_FOpenFile (name, &f);
if (f) {
Qclose (f);
Cmd_Exec_File (cl_cbuf, name);
} else {