aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2002-11-03 08:45:11 +0000
committerJonathan Gray2002-11-03 08:45:11 +0000
commitad2f7cc8e4c74c254b887100953413dcb5ea66fa (patch)
tree86de4bfe57b5147fbebfaeb1e37758f1b250432e
parentb99afecb414421c25cd10bcbbd20eaef74c61b28 (diff)
downloadscummvm-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
-rw-r--r--scumm/scummvm.cpp10
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
}