summaryrefslogtreecommitdiff
path: root/src/spriteloader
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/spriteloader
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/spriteloader')
-rw-r--r--src/spriteloader/png.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spriteloader/png.cpp b/src/spriteloader/png.cpp
index a1a6aa4a1..d31184385 100644
--- a/src/spriteloader/png.cpp
+++ b/src/spriteloader/png.cpp
@@ -42,7 +42,7 @@ static bool OpenPNGFile(const char *filename, uint32 id, bool mask)
/* Add path separator after 'sprites' if not present */
const char *sep = (filename[0] == PATHSEPCHAR) ? "" : PATHSEP;
snprintf(png_file, sizeof(png_file), "sprites%s%s" PATHSEP "%d%s.png", sep, filename, id, mask ? "m" : "");
- if (FioCheckFileExists(png_file)) {
+ if (FioCheckFileExists(png_file, NEWGRF_DIR)) {
FioOpenFile(PNG_SLOT, png_file, NEWGRF_DIR);
return true;
}