From 740e7cc0ff523ec4d238f6872f8c96e3cb9a1bc5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 5 Jun 2003 10:33:13 +0000 Subject: restricted check to V2, stupid mistake svn-id: r8323 --- scumm/saveload.cpp | 2 +- scumm/scummvm.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index f48a8f7d9a..f4f58878e4 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -182,7 +182,7 @@ bool Scumm::loadState(int slot, bool compat, SaveFileManager *mgr) { initBGBuffers(_roomHeight); - if (_features & GF_OLD_BUNDLE) { + if (_features & GF_AFTER_V2) { // Regenerate strip table when loading _roomStrips = gdi.generateStripTable(getResourceAddress(rtRoom, _roomResource) + _IM00_offs, _roomWidth, _roomHeight, _roomStrips); diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index b07f6fc2ea..079605b58d 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1413,7 +1413,8 @@ void Scumm::initRoomSubBlocks() { // if (_features & GF_OLD_BUNDLE) { _IM00_offs = READ_LE_UINT16(roomptr + 0x0A); - _roomStrips = gdi.generateStripTable(roomptr + _IM00_offs, _roomWidth, _roomHeight, _roomStrips); + if (_features & GF_AFTER_V2) + _roomStrips = gdi.generateStripTable(roomptr + _IM00_offs, _roomWidth, _roomHeight, _roomStrips); } else if (_features & GF_SMALL_HEADER) _IM00_offs = findResourceData(MKID('IM00'), roomptr) - roomptr; else if (_features & GF_AFTER_V8) { -- cgit v1.2.3