diff options
author | Max Horn | 2003-05-21 18:53:00 +0000 |
---|---|---|
committer | Max Horn | 2003-05-21 18:53:00 +0000 |
commit | e5152405da0ff6facd7b59004b835d88f88d4025 (patch) | |
tree | 269fcd00c528dd217af69a7a2c7519344500eac7 /scumm | |
parent | c78230bf47fb0b4151e4f394fc28ef3957d3ded5 (diff) | |
download | scummvm-rg350-e5152405da0ff6facd7b59004b835d88f88d4025.tar.gz scummvm-rg350-e5152405da0ff6facd7b59004b835d88f88d4025.tar.bz2 scummvm-rg350-e5152405da0ff6facd7b59004b835d88f88d4025.zip |
fixed V2 entry script dumping
svn-id: r7799
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/scummvm.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 949d2159a5..5041e37918 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1316,7 +1316,7 @@ void Scumm::initRoomSubBlocks() { int ENCD_len = -1; if (_features & GF_AFTER_V2) { _ENCD_offs = READ_LE_UINT16(roomptr + 0x1A); - // TODO: determine v2 entry script length + ENCD_len = READ_LE_UINT16(roomptr) - _ENCD_offs + _resourceHeaderSize; // HACK } else if (_features & GF_OLD_BUNDLE) { _ENCD_offs = READ_LE_UINT16(roomptr + 0x1B); // FIXME - the following is a hack which assumes that immediately after @@ -1325,8 +1325,7 @@ void Scumm::initRoomSubBlocks() { int num_sounds = *(roomResPtr + 23); int num_scripts = *(roomResPtr + 24); ptr = roomptr + 29 + num_objects * 4 + num_sounds + num_scripts; - if (*ptr) - ENCD_len = READ_LE_UINT16(ptr + 1) - _ENCD_offs + _resourceHeaderSize; // HACK + ENCD_len = READ_LE_UINT16(ptr + 1) - _ENCD_offs + _resourceHeaderSize; // HACK } else { ptr = findResourceData(MKID('ENCD'), roomResPtr); if (ptr) |