aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorPaul Gilbert2014-10-13 10:11:54 -0400
committerPaul Gilbert2014-10-13 10:11:54 -0400
commitffe58e058c40de73e6fe45aa87745f3fe9e48cf1 (patch)
tree5b55ab95227a4962dc71e7e52610a637cb0278d1 /engines/mads
parentfc2a579f2e44879217b9d16d264eaafeea680de4 (diff)
downloadscummvm-rg350-ffe58e058c40de73e6fe45aa87745f3fe9e48cf1.tar.gz
scummvm-rg350-ffe58e058c40de73e6fe45aa87745f3fe9e48cf1.tar.bz2
scummvm-rg350-ffe58e058c40de73e6fe45aa87745f3fe9e48cf1.zip
MADS: Fix playback of digital audio during animation sequences
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/animation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp
index ace505839c..0807d8e409 100644
--- a/engines/mads/animation.cpp
+++ b/engines/mads/animation.cpp
@@ -555,6 +555,10 @@ void Animation::update() {
0, 0, INDEFINITE_TIMEOUT, me._msg);
assert(me._kernelMsgIndex >= 0);
++_messageCtr;
+
+ // If there's an accompanying sound, also play it
+ if (me._soundId > 0)
+ _vm->_audio->playSound(me._soundId);
}
}