diff options
author | Paul Gilbert | 2018-05-05 10:57:28 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-05-05 10:57:28 -0400 |
commit | 47ecb0b2e77de96755e259c43844d3f28f464d5b (patch) | |
tree | 00b6e2a55cc0b23fa7a9b2c7af4bde8e64298507 /engines | |
parent | 64e29224d38dc98fd493cadaec340f241a1b0570 (diff) | |
download | scummvm-rg350-47ecb0b2e77de96755e259c43844d3f28f464d5b.tar.gz scummvm-rg350-47ecb0b2e77de96755e259c43844d3f28f464d5b.tar.bz2 scummvm-rg350-47ecb0b2e77de96755e259c43844d3f28f464d5b.zip |
XEEN: Stop any voice playback in World Talkie if the dialog is closed early
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/scripts.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 4854f4edc1..32f6ae9f13 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -239,6 +239,10 @@ int Scripts::checkEvents() { _vm->_mode = oldMode; windows.closeAll(); + if (g_vm->getIsCD() && g_system->getAudioCDManager()->isPlaying()) + // Stop any playing voice + g_system->getAudioCDManager()->stop(); + if (g_vm->shouldExit()) return g_vm->_gameMode; |