aboutsummaryrefslogtreecommitdiff
path: root/scumm/room.cpp
diff options
context:
space:
mode:
authorMax Horn2005-04-26 14:24:29 +0000
committerMax Horn2005-04-26 14:24:29 +0000
commit4239ac74076bb0c7024bd11a511933a3596a5c69 (patch)
treed5a7506bca6ad46912d44ec664ecb21845e60fb8 /scumm/room.cpp
parent973cb9a281e7b2dc73b7c640172954cc5f0bacfd (diff)
downloadscummvm-rg350-4239ac74076bb0c7024bd11a511933a3596a5c69.tar.gz
scummvm-rg350-4239ac74076bb0c7024bd11a511933a3596a5c69.tar.bz2
scummvm-rg350-4239ac74076bb0c7024bd11a511933a3596a5c69.zip
Since we don't store _CLUT_offs anymore, we can clean up the code related to it now
svn-id: r17823
Diffstat (limited to 'scumm/room.cpp')
-rw-r--r--scumm/room.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/scumm/room.cpp b/scumm/room.cpp
index 18ca95c4da..c432289784 100644
--- a/scumm/room.cpp
+++ b/scumm/room.cpp
@@ -384,23 +384,9 @@ void ScummEngine::loadRoomSubBlocks() {
_EPAL_offs = ptr - roomptr;
// Locate the standard room palette (for V3-V5 games).
- // TODO: We used to use findResourceSmall instead of findResourceData;
- // in the small header case. That means we have to do some ugly trickery
- // in order to emulate the old behaviour. It would be very nice to get
- // rid of that. That would require some changes to the palette code.
- // In particular, it seems only setPaletteFromPtr would have to be
- // adapted, which would be trivial, since it now adds _resourceHeaderSize
- // to the palette pointer.
- //
- // Of course this would break savegame compatibility unless extra code
- // were added to the save/load system to cope with this.
ptr = findResourceData(MKID('CLUT'), roomptr);
-
- if (ptr) {
- if ((_features & GF_SMALL_HEADER) && ptr)
- ptr -= _resourceHeaderSize;
+ if (ptr)
_CLUT_offs = ptr - roomptr;
- }
// Locate the standard room palettes (for V6+ games).
if (_version >= 6) {