(svn r22825) -Codechange: pass subdir to FioOpenFile

This commit is contained in:
rubidium
2011-08-24 13:42:06 +00:00
parent 9838ceb880
commit 26788cf363
6 changed files with 10 additions and 9 deletions

View File

@@ -43,7 +43,7 @@ static bool OpenPNGFile(const char *filename, uint32 id, bool mask)
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)) {
FioOpenFile(PNG_SLOT, png_file);
FioOpenFile(PNG_SLOT, png_file, NEWGRF_DIR);
return true;
}