diff options
author | Nipun Garg | 2019-08-18 01:12:59 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:34 +0200 |
commit | 6fbadccf0874dffbe09be5908b523bd480805b83 (patch) | |
tree | 8bc12fb202f6e017dbb5d2ccf1756fed876405d2 /engines/hdb/hdb.cpp | |
parent | 7e0af9a2cbcc4b48cf30b507575014e87555eb1d (diff) | |
download | scummvm-rg350-6fbadccf0874dffbe09be5908b523bd480805b83.tar.gz scummvm-rg350-6fbadccf0874dffbe09be5908b523bd480805b83.tar.bz2 scummvm-rg350-6fbadccf0874dffbe09be5908b523bd480805b83.zip |
HDB: Fix voice playing when no message on screen
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r-- | engines/hdb/hdb.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 1eaa102927..43b419abdc 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -214,6 +214,7 @@ void HDBGame::changeGameState() { break; case GAME_PLAY: _menu->startMenu(); + _sound->stopVoices(); _gameState = GAME_MENU; break; case GAME_LOADING: @@ -1022,6 +1023,11 @@ Common::Error HDBGame::run() { _map->drawForegrounds(); _ai->animateTargets(); + // Check for voice to interrupt + if (!_window->dialogActive() && !_window->dialogChoiceActive() && !_window->msgBarActive()) { + _sound->stopVoices(); + } + _window->drawDialog(); _window->drawDialogChoice(); _window->drawInventory(); |