From 99550a95b20d74afd845f95713ce132c2dcbfa93 Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Wed, 24 Jul 2019 20:52:09 +0200 Subject: MORTEVILLE: Stop speech when pressing F8. --- engines/mortevielle/dialogs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/mortevielle/dialogs.cpp b/engines/mortevielle/dialogs.cpp index ff1e026e9b..7069765dcd 100644 --- a/engines/mortevielle/dialogs.cpp +++ b/engines/mortevielle/dialogs.cpp @@ -421,6 +421,10 @@ void DialogManager::checkForF8(int SpeechNum, bool drawFrame2Fl) { if (_vm->shouldQuit()) return; } while (_vm->_key != 66); // keycode for F8 + // just stop the speech when pressing F8 +#ifdef USE_TTS + _vm->_soundManager->_ttsMan->stop(); +#endif } /** -- cgit v1.2.3