mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +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);
|
COM_StripExtension (mapname, name);
|
||||||
strcat (name, ".cfg");
|
strcat (name, ".cfg");
|
||||||
if (COM_FOpenFile (name, &f)) {
|
COM_FOpenFile (name, &f);
|
||||||
|
if (f) {
|
||||||
Qclose (f);
|
Qclose (f);
|
||||||
Cmd_Exec_File (host_cbuf, name);
|
Cmd_Exec_File (host_cbuf, name);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -261,7 +261,8 @@ map_cfg (const char *mapname, int all)
|
||||||
|
|
||||||
COM_StripExtension (mapname, name);
|
COM_StripExtension (mapname, name);
|
||||||
strcat (name, ".cfg");
|
strcat (name, ".cfg");
|
||||||
if (COM_FOpenFile (name, &f)) {
|
COM_FOpenFile (name, &f);
|
||||||
|
if (f) {
|
||||||
Qclose (f);
|
Qclose (f);
|
||||||
Cmd_Exec_File (cl_cbuf, name);
|
Cmd_Exec_File (cl_cbuf, name);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue