Skip to content

Commit

Permalink
LAB: Wait for the end of sound effects when they are played in Diff f…
Browse files Browse the repository at this point in the history
…iles. Fixes toilet noises.
  • Loading branch information
Strangerke committed Jan 25, 2016
1 parent 2f03bc7 commit 75d1385
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion engines/lab/processroom.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 75d1385

Please sign in to comment.