summaryrefslogtreecommitdiff
path: root/src/heightmap.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-08-24 13:53:34 +0000
committerrubidium <rubidium@openttd.org>2011-08-24 13:53:34 +0000
commitb4edc30c64b98d35fd35eb53eccd52bfc039c1f7 (patch)
tree4deef2b9a21ab44ef83f59d847bbb883dc34a540 /src/heightmap.cpp
parent8e5f433b22a36b2210c4e7386b476382afad7dd6 (diff)
downloadopenttd-b4edc30c64b98d35fd35eb53eccd52bfc039c1f7.tar.xz
(svn r22827) -Codechange: pass the/a more proper sub directory when opening (some) files instead of the default one
Diffstat (limited to 'src/heightmap.cpp')
-rw-r--r--src/heightmap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/heightmap.cpp b/src/heightmap.cpp
index 8790da59e..07b1e5e2a 100644
--- a/src/heightmap.cpp
+++ b/src/heightmap.cpp
@@ -105,7 +105,7 @@ static bool ReadHeightmapPNG(char *filename, uint *x, uint *y, byte **map)
png_structp png_ptr = NULL;
png_infop info_ptr = NULL;
- fp = FioFOpenFile(filename, "rb");
+ fp = FioFOpenFile(filename, "rb", HEIGHTMAP_DIR);
if (fp == NULL) {
ShowErrorMessage(STR_ERROR_PNGMAP, STR_ERROR_PNGMAP_FILE_NOT_FOUND, WL_ERROR);
return false;
@@ -228,7 +228,7 @@ static bool ReadHeightmapBMP(char *filename, uint *x, uint *y, byte **map)
/* Init BmpData */
memset(&data, 0, sizeof(data));
- f = FioFOpenFile(filename, "rb");
+ f = FioFOpenFile(filename, "rb", HEIGHTMAP_DIR);
if (f == NULL) {
ShowErrorMessage(STR_ERROR_BMPMAP, STR_ERROR_PNGMAP_FILE_NOT_FOUND, WL_ERROR);
return false;