(svn r22827) -Codechange: pass the/a more proper sub directory when opening (some) files instead of the default one

This commit is contained in:
rubidium
2011-08-24 13:53:34 +00:00
parent af80e9106e
commit 62886dfeed
5 changed files with 8 additions and 8 deletions

View File

@@ -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;