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:
Bill Currie 2014-01-29 16:13:24 +09:00
parent 99678a571b
commit 946561ba44

View file

@ -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);