LAB: Fix waiting for sounds embedded in animations
A regression of 75d1385c8d
This commit is contained in:
parent
22e5fe8b4e
commit
b2ec7acbf7
2 changed files with 8 additions and 9 deletions
|
@ -254,16 +254,9 @@ void LabEngine::doActions(const ActionList &actionList) {
|
|||
_music->loadSoundEffect(action->_messages[0], true, false);
|
||||
break;
|
||||
|
||||
case kActionShowDiff: {
|
||||
bool curWait = _anim->_waitForEffect;
|
||||
// Pause the engine until the sound is finished
|
||||
_anim->_waitForEffect = true;
|
||||
case kActionShowDiff:
|
||||
_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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue