Mask files don't always exist in Amiga version of BRA, in paricular NULL.msk.

svn-id: r33394
This commit is contained in:
Travis Howell 2008-07-29 04:06:10 +00:00
parent fd40cb4342
commit 598394e5b8

View File

@ -615,13 +615,13 @@ void AmigaDisk_br::loadScenery(BackgroundInfo& info, const char* name, const cha
if (!node.exists()) {
filepath = Common::String(mask) + ".msk";
node = _commonMskDir.getChild(filepath);
if (!node.exists()) {
errorFileNotFound(_mskDir, filepath);
}
}
stream.open(node);
loadMask(info, stream);
stream.close();
if (node.exists()) {
stream.open(node);
loadMask(info, stream);
stream.close();
}
}
if (path && _pthDir.exists()) {