This particular case in ScummEngine::openRoom only occurs for V4 games; changing the check accordingly, to ease future refactoring

svn-id: r21063
This commit is contained in:
Max Horn 2006-03-04 10:41:40 +00:00
parent bb38ea2c17
commit 5e881c158a

View File

@ -101,7 +101,7 @@ void ScummEngine::openRoom(const int room) {
if (_game.id == GID_MANIAC)
sprintf(buf2, "%.2d.man", room);
encByte = (_game.features & GF_USE_KEY) ? 0xFF : 0;
} else if (_game.features & GF_SMALL_HEADER) {
} else if (_game.version == 4) {
if (room == 0 || room >= 900) {
sprintf(buf, "%.3d.lfl", room);
encByte = 0;