aboutsummaryrefslogtreecommitdiff
path: root/engines/lab
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lab')
-rw-r--r--engines/lab/processroom.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/lab/processroom.cpp b/engines/lab/processroom.cpp
index f0d17bbc24..ecbfb4e2a7 100644
--- a/engines/lab/processroom.cpp
+++ b/engines/lab/processroom.cpp
@@ -252,9 +252,16 @@ void LabEngine::doActions(const ActionList &actionList) {
_music->loadSoundEffect(action->_messages[0], true, false);
break;
- case kActionShowDiff:
+ case kActionShowDiff: {
+ bool curWait = _anim->_waitForEffect;
+ // Pause the engine until the sound is finished
+ _anim->_waitForEffect = true;
_graphics->readPict(action->_messages[0], true);
+
+ // Restore the previous value of _waitForEffect
+ _anim->_waitForEffect = curWait;
break;
+ }
case kActionShowDiffLooping: // used in scene 44 (heart of the labyrinth, minotaur)
_graphics->readPict(action->_messages[0], false);