From 0061b5f1842776ff4d69bf9f3bcdfb348b2f5a76 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 24 Aug 2011 13:33:49 +0000 Subject: (svn r22822) -Codechange: make a distinction between base sets and newgrfs for their directory --- src/newgrf_config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newgrf_config.cpp') diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index ad73f5b3d..edd64745c 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -292,7 +292,7 @@ static bool CalcGRFMD5Sum(GRFConfig *config) size_t len, size; /* open the file */ - f = FioFOpenFile(config->filename, "rb", DATA_DIR, &size); + f = FioFOpenFile(config->filename, "rb", NEWGRF_DIR, &size); if (f == NULL) return false; /* calculate md5sum */ @@ -543,7 +543,7 @@ public: static uint DoScan() { GRFFileScanner fs; - int ret = fs.Scan(".grf", DATA_DIR); + int ret = fs.Scan(".grf", NEWGRF_DIR); /* The number scanned and the number returned may not be the same; * duplicate NewGRFs and base sets are ignored in the return value. */ _settings_client.gui.last_newgrf_count = fs.num_scanned; -- cgit v1.2.3-54-g00ecf