mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r15111) -Fix: when scanning a path and saying it should ignore tars, it didn't do so
This commit is contained in:
parent
3db8b544ba
commit
2adcaa576f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue