diff options
author | frosch <frosch@openttd.org> | 2011-11-15 00:26:06 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-11-15 00:26:06 +0000 |
commit | 7b86e3e109fbacfa7eb71112fe946d762ecba113 (patch) | |
tree | 1357ce0bb5f2f232e053fa787d4ca7cb55611c5e /src | |
parent | 52d3be2e05db329a202a8bb4db3b4b95c40fc617 (diff) | |
download | openttd-7b86e3e109fbacfa7eb71112fe946d762ecba113.tar.xz |
(svn r23227) -Fix (r23219): The FileScanner should also consider the old directories.
Diffstat (limited to 'src')
-rw-r--r-- | src/fileio.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index c7f14f18f..e93685091 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -1375,6 +1375,18 @@ uint FileScanner::Scan(const char *extension, Subdirectory sd, bool tars, bool r } } + switch (sd) { + case BASESET_DIR: + num += this->Scan(extension, OLD_GM_DIR, tars, recursive); + break; + + case NEWGRF_DIR: + num += this->Scan(extension, OLD_DATA_DIR, tars, recursive); + break; + + default: break; + } + return num; } |