mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-04-01 16:01:01 +00:00
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:
parent
7058052aea
commit
4b7b29c339
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ FS_FOpenFile(const char *name, fileHandle_t *f, qboolean gamedir_only)
|
|||
{
|
||||
if (strstr(search->path, FS_Gamedir()) == NULL)
|
||||
{
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue