diff options
author | Jonathan Gray | 2002-11-03 09:20:02 +0000 |
---|---|---|
committer | Jonathan Gray | 2002-11-03 09:20:02 +0000 |
commit | 50917288152199f9c92d9c0b89e47633b7c95a8f (patch) | |
tree | 386c982e36dc522a8825912f9ffc53e69392d2d9 | |
parent | ad2f7cc8e4c74c254b887100953413dcb5ea66fa (diff) | |
download | scummvm-rg350-50917288152199f9c92d9c0b89e47633b7c95a8f.tar.gz scummvm-rg350-50917288152199f9c92d9c0b89e47633b7c95a8f.tar.bz2 scummvm-rg350-50917288152199f9c92d9c0b89e47633b7c95a8f.zip |
cleaner way to fix entry/exit dumping
svn-id: r5389
-rw-r--r-- | scumm/scummvm.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index f1137a7dce..cc879868b7 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -717,10 +717,7 @@ void Scumm::initRoomSubBlocks() if (ptr) { _EXCD_offs = ptr - roomptr; #ifdef DUMP_SCRIPTS - if (_features & GF_SMALL_HEADER) - dumpResource("exit-", _roomResource, ptr - 6); - else - dumpResource("exit-", _roomResource, ptr - 8); + dumpResource("exit-", _roomResource, ptr - _resourceHeaderSize); #endif } @@ -728,10 +725,7 @@ void Scumm::initRoomSubBlocks() if (ptr) { _ENCD_offs = ptr - roomptr; #ifdef DUMP_SCRIPTS - if (_features & GF_SMALL_HEADER) - dumpResource("entry-", _roomResource, ptr - 6); - else - dumpResource("entry-", _roomResource, ptr - 8); + dumpResource("entry-", _roomResource, ptr - _resourceHeaderSize); #endif } |