Don't stop the filesearch if the first try fails.

It was a wrong (and maybe stupid) assumption, that the config dir
(~/.yq2) is always the first element of the search path. When there's
at least one pak file in the config dir, it's added at a random
location. Work around this by probing all directories. This fixes
issue #107.
This commit is contained in:
Yamagi Burmeister 2015-10-28 07:41:58 +01:00
parent 7058052aea
commit 4b7b29c339
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ FS_FOpenFile(const char *name, fileHandle_t *f, qboolean gamedir_only)
{
if (strstr(search->path, FS_Gamedir()) == NULL)
{
break;
continue;
}
}