diff options
author | Strangerke | 2013-08-13 00:06:09 +0200 |
---|---|---|
committer | Strangerke | 2013-08-13 00:06:09 +0200 |
commit | d811df89ff4c786ec36b44f598e6f373519e5e2b (patch) | |
tree | c8d3d97db353cf17c56bf46c08654698084c3d16 /engines/mortevielle/actions.cpp | |
parent | 818d3981e32b83e2531f63bb603b4c48cba9b412 (diff) | |
download | scummvm-rg350-d811df89ff4c786ec36b44f598e6f373519e5e2b.tar.gz scummvm-rg350-d811df89ff4c786ec36b44f598e6f373519e5e2b.tar.bz2 scummvm-rg350-d811df89ff4c786ec36b44f598e6f373519e5e2b.zip |
MORTEVIELLE: Fix door animation display when opening the doors
Diffstat (limited to 'engines/mortevielle/actions.cpp')
-rw-r--r-- | engines/mortevielle/actions.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/mortevielle/actions.cpp b/engines/mortevielle/actions.cpp index 3e3db5b224..f7cc239997 100644 --- a/engines/mortevielle/actions.cpp +++ b/engines/mortevielle/actions.cpp @@ -1147,6 +1147,10 @@ void MortevielleEngine::fctEnter() { int randVal = (getRandomNumber(0, 10)) - 5; _soundManager.startSpeech(7, randVal, 1); displayAnimFrame(1, 1); + while (_mixer->isSoundHandleActive(_soundManager._soundHandle) && !keyPressed() && !_mouseClick && !shouldQuit()) + ; + // In case the handle is still active, stop it. + _mixer->stopHandle(_soundManager._soundHandle); int charIndex = convertBitIndexToCharacterIndex(z); ++_coreVar._faithScore; @@ -1168,6 +1172,10 @@ void MortevielleEngine::fctEnter() { int randVal = (getRandomNumber(0, 10)) - 5; _soundManager.startSpeech(7, randVal, 1); displayAnimFrame(1, 1); + while (_mixer->isSoundHandleActive(_soundManager._soundHandle) && !keyPressed() && !_mouseClick && !shouldQuit()) + ; + // In case the handle is still active, stop it. + _mixer->stopHandle(_soundManager._soundHandle); _coreVar._currPlace = _roomDoorId; prepareDisplayText(); |