From 2adcaa576fd0e69205fdb96b453b80eed33c2cbb Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 16 Jan 2009 16:14:01 +0000 Subject: (svn r15111) -Fix: when scanning a path and saying it should ignore tars, it didn't do so --- src/fileio.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/fileio.cpp') diff --git a/src/fileio.cpp b/src/fileio.cpp index fc60dfebe..5940d021f 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -1087,8 +1087,11 @@ uint FileScanner::Scan(const char *extension, Subdirectory sd, bool tars) FioAppendDirectory(path, MAX_PATH, sp, sd); num += ScanPath(this, extension, path, strlen(path)); } - FOR_ALL_TARS(tar) { - num += ScanTar(this, extension, tar); + + if (tars) { + FOR_ALL_TARS(tar) { + num += ScanTar(this, extension, tar); + } } return num; -- cgit v1.2.3-54-g00ecf