aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/saga.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2008-11-13 09:19:42 +0000
committerFilippos Karapetis2008-11-13 09:19:42 +0000
commit8e3485f15876e913ddbb982f36ea089665c08eab (patch)
treefa04b86f8c68c46ed87172caa15db0e049c66fe5 /engines/saga/saga.cpp
parent963445e559de4c363af180d290ea65e5c3a51b90 (diff)
downloadscummvm-rg350-8e3485f15876e913ddbb982f36ea089665c08eab.tar.gz
scummvm-rg350-8e3485f15876e913ddbb982f36ea089665c08eab.tar.bz2
scummvm-rg350-8e3485f15876e913ddbb982f36ea089665c08eab.zip
Added better checks for the current music status in pauseEngineIntern()
svn-id: r35035
Diffstat (limited to 'engines/saga/saga.cpp')
-rw-r--r--engines/saga/saga.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp
index f20672d46b..e12bdbdd5d 100644
--- a/engines/saga/saga.cpp
+++ b/engines/saga/saga.cpp
@@ -147,6 +147,7 @@ Common::Error SagaEngine::init() {
_copyProtection = ConfMan.getBool("copy_protection");
_gf_wyrmkeep = false;
_gf_compressed_sounds = false;
+ _musicWasPlaying = false;
if (_readingSpeed > 3)
_readingSpeed = 0;
@@ -539,12 +540,17 @@ void SagaEngine::pauseEngineIntern(bool pause) {
if (pause) {
_render->setFlag(RF_RENDERPAUSE);
- if (!_music->hasDigitalMusic())
+ if (_music->isPlaying()) {
_music->pause();
+ _musicWasPlaying = true;
+ } else {
+ _musicWasPlaying = false;
+ }
} else {
_render->clearFlag(RF_RENDERPAUSE);
- if (!_music->hasDigitalMusic())
+ if (_musicWasPlaying) {
_music->resume();
+ }
}
_mixer->pauseAll(pause);