TWINE: fixed interupted spoken text

https://bugs.scummvm.org/ticket/11982
This commit is contained in:
Martin Gerhardy 2021-01-01 15:28:21 +01:00
parent a97ef349ce
commit ed7364101d
2 changed files with 5 additions and 1 deletions

View File

@ -384,6 +384,8 @@ void GameState::processFoundItem(int32 item) {
}
}
_engine->_text->playVoxSimple(_engine->_text->currDialTextEntry);
_engine->lbaTime++;
}

View File

@ -620,9 +620,11 @@ bool Text::displayText(int32 index, bool showText, bool playVox) {
aborted = true;
break;
}
_engine->_text->playVoxSimple(_engine->_text->currDialTextEntry);
}
}
while (_engine->_sound->isSamplePlaying(currDialTextEntry)) {
while (_engine->_text->playVoxSimple(_engine->_text->currDialTextEntry)) {
ScopedFPS scopedFps;
_engine->readKeys();
if (_engine->shouldQuit() || _engine->_input->toggleAbortAction()) {