From 7b86e3e109fbacfa7eb71112fe946d762ecba113 Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 15 Nov 2011 00:26:06 +0000 Subject: (svn r23227) -Fix (r23219): The FileScanner should also consider the old directories. --- src/fileio.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2