From c6b27d0b816351045b4cd8cfca1701a8e4526214 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 6 Dec 2005 02:21:56 +0000 Subject: [PATCH] Fixes all that tests for relative file depths. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1674 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/fs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/common/fs.c b/engine/common/fs.c index 4de78a99e..7e24bace0 100644 --- a/engine/common/fs.c +++ b/engine/common/fs.c @@ -1023,6 +1023,7 @@ int FS_FLocateFile(char *filename, FSLF_ReturnType_e returntype, flocation_t *lo loc->search = search; goto out; } + depth += (search->funcs != &osfilefuncs || returntype == FSLFRT_DEPTH_ANYPATH); } } @@ -1038,6 +1039,7 @@ int FS_FLocateFile(char *filename, FSLF_ReturnType_e returntype, flocation_t *lo loc->search = search; goto out; } + depth += (search->funcs != &osfilefuncs || returntype == FSLFRT_DEPTH_ANYPATH); } fail: if (loc)