aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/animation.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-10-06 22:14:57 -0400
committerPaul Gilbert2014-10-06 22:14:57 -0400
commitde434e45d3828bb1c5b0c82711d0fe34bf14eed2 (patch)
tree27afc954a5e816c4f08b5cde99248b795d3d50ee /engines/mads/animation.cpp
parent9e6f3c5964962ca15f4663e75174ca87852334de (diff)
downloadscummvm-rg350-de434e45d3828bb1c5b0c82711d0fe34bf14eed2.tar.gz
scummvm-rg350-de434e45d3828bb1c5b0c82711d0fe34bf14eed2.tar.bz2
scummvm-rg350-de434e45d3828bb1c5b0c82711d0fe34bf14eed2.zip
MADS: Fixes for loading of intro cutscene animation
Diffstat (limited to 'engines/mads/animation.cpp')
-rw-r--r--engines/mads/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp
index 9b2c097004..ace505839c 100644
--- a/engines/mads/animation.cpp
+++ b/engines/mads/animation.cpp
@@ -242,7 +242,7 @@ void Animation::load(MSurface &backSurface, DepthSurface &depthSurface,
for (int i = 0; i < _header._frameEntriesCount; i++) {
AnimFrameEntry rec;
- rec.load(frameStream, flags & ANIMFLAG_LOAD_BACKGROUND);
+ rec.load(frameStream, _header._bgType == ANIMBG_INTERFACE);
_frameEntries.push_back(rec);
}
@@ -255,7 +255,7 @@ void Animation::load(MSurface &backSurface, DepthSurface &depthSurface,
// Chunk 4: Misc Data
Common::SeekableReadStream *miscStream = madsPack.getItemStream(streamIndex++);
- if (flags & ANIMFLAG_LOAD_BACKGROUND) {
+ if (_header._bgType == ANIMBG_INTERFACE) {
for (int i = 0; i < _header._miscEntriesCount; ++i) {
AnimUIEntry rec;
rec.load(miscStream);