mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 01:41:10 +00:00
Don't bail out prematurely when searching for files.
This fixes the problem of not finding files without a .gz extension when gzip support is enabled (most of my quake data is compressed, so it took a while for me to notice the problem).
This commit is contained in:
parent
99678a571b
commit
946561ba44
1 changed files with 1 additions and 2 deletions
|
@ -849,8 +849,7 @@ qfs_findfile_search (const vpath_t *vpath, const searchpath_t *sp,
|
|||
for (fn = fnames; *fn; fn++) {
|
||||
if (qfs_expand_path (path, sp->filename, *fn, 1) == 0) {
|
||||
if (Sys_FileExists (path->str) == -1) {
|
||||
dstring_delete (path);
|
||||
return 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
Sys_MaskPrintf (SYS_FS_F, "FindFile: %s\n", path->str);
|
||||
|
|
Loading…
Reference in a new issue