diff options
author | Jonathan Gray | 2002-11-03 08:45:11 +0000 |
---|---|---|
committer | Jonathan Gray | 2002-11-03 08:45:11 +0000 |
commit | ad2f7cc8e4c74c254b887100953413dcb5ea66fa (patch) | |
tree | 86de4bfe57b5147fbebfaeb1e37758f1b250432e /scumm/scummvm.cpp | |
parent | b99afecb414421c25cd10bcbbd20eaef74c61b28 (diff) | |
download | scummvm-rg350-ad2f7cc8e4c74c254b887100953413dcb5ea66fa.tar.gz scummvm-rg350-ad2f7cc8e4c74c254b887100953413dcb5ea66fa.tar.bz2 scummvm-rg350-ad2f7cc8e4c74c254b887100953413dcb5ea66fa.zip |
fix dumping of exit/entry scripts for older games
svn-id: r5388
Diffstat (limited to 'scumm/scummvm.cpp')
-rw-r--r-- | scumm/scummvm.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 08ff719f75..f1137a7dce 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -717,7 +717,10 @@ void Scumm::initRoomSubBlocks() if (ptr) { _EXCD_offs = ptr - roomptr; #ifdef DUMP_SCRIPTS - dumpResource("exit-", _roomResource, ptr - 8); + if (_features & GF_SMALL_HEADER) + dumpResource("exit-", _roomResource, ptr - 6); + else + dumpResource("exit-", _roomResource, ptr - 8); #endif } @@ -725,7 +728,10 @@ void Scumm::initRoomSubBlocks() if (ptr) { _ENCD_offs = ptr - roomptr; #ifdef DUMP_SCRIPTS - dumpResource("entry-", _roomResource, ptr - 8); + if (_features & GF_SMALL_HEADER) + dumpResource("entry-", _roomResource, ptr - 6); + else + dumpResource("entry-", _roomResource, ptr - 8); #endif } |