fix dumping of exit/entry scripts for older games

svn-id: r5388
This commit is contained in:
Jonathan Gray 2002-11-03 08:45:11 +00:00
parent b99afecb41
commit ad2f7cc8e4

View File

@ -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
}