aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/animation.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp
index f55e485c20..25fa4a8e06 100644
--- a/engines/mads/animation.cpp
+++ b/engines/mads/animation.cpp
@@ -296,18 +296,10 @@ void Animation::load(UserInterface &interfaceSurface, MSurface &depthSurface,
if (usageList.size() > 0)
_vm->_palette->_paletteUsage.updateUsage(usageList, _header._messagesCount);
- if (_header._bgType == ANIMBG_INTERFACE) {
- // Remaps the sprite list indexes for frames to the loaded sprite list indexes
- for (uint i = 0; i < _frameEntries.size(); ++i) {
- int spriteListIndex = _frameEntries[i]._spriteSlot._spritesIndex;
- _frameEntries[i]._spriteSlot._spritesIndex = _spriteListIndexes[spriteListIndex];
- }
- } else {
- // Remaps the sprite list indexes for frames to the loaded sprite list indexes
- for (uint i = 0; i < _frameEntries.size(); ++i) {
- int spriteListIndex = _frameEntries[i]._spriteSlot._spritesIndex;
- _frameEntries[i]._spriteSlot._spritesIndex = _spriteListIndexes[spriteListIndex];
- }
+ // Remaps the sprite list indexes for frames to the loaded sprite list indexes
+ for (uint i = 0; i < _frameEntries.size(); ++i) {
+ int spriteListIndex = _frameEntries[i]._spriteSlot._spritesIndex;
+ _frameEntries[i]._spriteSlot._spritesIndex = _spriteListIndexes[spriteListIndex];
}
f.close();