mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
d'oh, COM_FOpenFile could probably do with a re-design of its api :P
This commit is contained in:
parent
62bbd0228a
commit
864b181b99
2 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue