aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/utils.cpp
diff options
context:
space:
mode:
authorStrangerke2013-08-11 11:39:47 +0200
committerStrangerke2013-08-11 11:40:16 +0200
commitb749c2115b66a20fa6457a82eb1edf6f872fd6a5 (patch)
tree62691eb4b9b156dab5e0729a7d7bcbfe6e9de483 /engines/mortevielle/utils.cpp
parent13ddf33e78109d7f1c8433a250bee66872a787fc (diff)
downloadscummvm-rg350-b749c2115b66a20fa6457a82eb1edf6f872fd6a5.tar.gz
scummvm-rg350-b749c2115b66a20fa6457a82eb1edf6f872fd6a5.tar.bz2
scummvm-rg350-b749c2115b66a20fa6457a82eb1edf6f872fd6a5.zip
MORTEVIELLE: Move the end of "sentence" to the main loop in order to fix the display
Diffstat (limited to 'engines/mortevielle/utils.cpp')
-rw-r--r--engines/mortevielle/utils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mortevielle/utils.cpp b/engines/mortevielle/utils.cpp
index 603dc6eae4..db1861c146 100644
--- a/engines/mortevielle/utils.cpp
+++ b/engines/mortevielle/utils.cpp
@@ -276,6 +276,9 @@ void MortevielleEngine::handleAction() {
if (shouldQuit())
return;
++temps;
+ if (!_soundManager._mixer->isSoundHandleActive(_soundManager._soundHandle) || keyPressed() || _mouseClick) {
+ _soundManager._mixer->stopHandle(_soundManager._soundHandle);
+ }
} while (!((_menu._menuSelected) || (temps > lim) || (funct) || (_anyone)));
_inMainGameLoop = false;