diff options
author | Max Horn | 2003-04-27 22:21:22 +0000 |
---|---|---|
committer | Max Horn | 2003-04-27 22:21:22 +0000 |
commit | 03adc716653371a6755c687ee2d76238fd5428a0 (patch) | |
tree | 696d409e2e58de571f08b1f93f4d87f8bf7ee2ed /scumm | |
parent | 28009de449919a849c14db95f004802d05c4aa35 (diff) | |
download | scummvm-rg350-03adc716653371a6755c687ee2d76238fd5428a0.tar.gz scummvm-rg350-03adc716653371a6755c687ee2d76238fd5428a0.tar.bz2 scummvm-rg350-03adc716653371a6755c687ee2d76238fd5428a0.zip |
clarified hack
svn-id: r7168
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/boxes.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scumm/boxes.cpp b/scumm/boxes.cpp index 6256577a68..c414816b91 100644 --- a/scumm/boxes.cpp +++ b/scumm/boxes.cpp @@ -207,9 +207,13 @@ Box *Scumm::getBoxBaseAddr(int box) { byte *ptr = getResourceAddress(rtMatrix, 2); if (!ptr) return NULL; - // stops pass to adventure loom demo from working properly + // FIXME: In "pass to adventure", the loom demo, when bobbin enters + // the tent to the elders, box = 2, but ptr[0] = 2 -> errors out. + // Hence we disable the check for now. Maybe in PASS (and other old games) + // we shouldn't subtract 1 from ptr[0] when performing the check? if (_gameId != GID_MONKEY_EGA) checkRange(ptr[0] - 1, 0, box, "Illegal box %d"); + if (_features & GF_SMALL_HEADER) { if (_features & GF_AFTER_V3) // GF_OLD256 or GF_AFTER_V3 ? return (Box *)(ptr + box * (SIZEOF_BOX - 2) + 1); |