From 47ecb0b2e77de96755e259c43844d3f28f464d5b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 5 May 2018 10:57:28 -0400 Subject: XEEN: Stop any voice playback in World Talkie if the dialog is closed early --- engines/xeen/scripts.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines') 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; -- cgit v1.2.3