diff options
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/assets.cpp | 4 | ||||
-rw-r--r-- | engines/mads/palette.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/mads/assets.cpp b/engines/mads/assets.cpp index 82585d574a..a2d495f311 100644 --- a/engines/mads/assets.cpp +++ b/engines/mads/assets.cpp @@ -101,7 +101,7 @@ void SpriteAsset::load(Common::SeekableReadStream *stream, int flags) { if (flags & (ASSET_TRANSLATE | ASSET_SPINNING_OBJECT)) { _usageIndex = 0; - if (flags & 8) { + if (flags & ASSET_SPINNING_OBJECT) { int newPalCtr = 0; for (uint i = 0; i < palette.size(); ++i) { @@ -131,7 +131,7 @@ void SpriteAsset::load(Common::SeekableReadStream *stream, int flags) { } } } else { - _usageIndex = _vm->_palette->_paletteUsage.process(palette, flags); + _usageIndex = _vm->_palette->_paletteUsage.process(palette, flags & 0xF800); assert(_usageIndex >= 0); } diff --git a/engines/mads/palette.cpp b/engines/mads/palette.cpp index 0028548c1e..f8670c71dc 100644 --- a/engines/mads/palette.cpp +++ b/engines/mads/palette.cpp @@ -285,7 +285,7 @@ void PaletteUsage::resetPalFlags(int idx) { *flagP = 0; } - _vm->_palette->_rgbList[idx] = 0; + _vm->_palette->_rgbList[idx] = false; } } |