summaryrefslogtreecommitdiff
path: root/src/newgrf_config.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-08-24 13:33:49 +0000
committerrubidium <rubidium@openttd.org>2011-08-24 13:33:49 +0000
commit0061b5f1842776ff4d69bf9f3bcdfb348b2f5a76 (patch)
tree3f45b215933b577fb159c9df743926ebdca1d126 /src/newgrf_config.cpp
parentbbdc8fdba7d30099d80227659919930f3dedf84b (diff)
downloadopenttd-0061b5f1842776ff4d69bf9f3bcdfb348b2f5a76.tar.xz
(svn r22822) -Codechange: make a distinction between base sets and newgrfs for their directory
Diffstat (limited to 'src/newgrf_config.cpp')
-rw-r--r--src/newgrf_config.cpp4
1 files changed, 2 insertions, 2 deletions
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;