MORTEVIELLE: Fix door animation display when opening the doors

This commit is contained in:
Strangerke 2013-08-13 00:06:09 +02:00
parent 818d3981e3
commit d811df89ff

View File

@ -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();