diff options
author | Oystein Eftevaag | 2010-08-26 23:41:39 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2010-08-26 23:41:39 +0000 |
commit | a7541810b4c4b991267ce7a63c6c4ad25e79e080 (patch) | |
tree | 9ac774e07971dc1b9470e585f94202e1cdfb0ea9 /engines/hugo/sound.cpp | |
parent | 98400327c3d2e497bba04f22dd096fcca4eeb255 (diff) | |
download | scummvm-rg350-a7541810b4c4b991267ce7a63c6c4ad25e79e080.tar.gz scummvm-rg350-a7541810b4c4b991267ce7a63c6c4ad25e79e080.tar.bz2 scummvm-rg350-a7541810b4c4b991267ce7a63c6c4ad25e79e080.zip |
HUGO: Removed some dead code and redundant indirection
svn-id: r52404
Diffstat (limited to 'engines/hugo/sound.cpp')
-rw-r--r-- | engines/hugo/sound.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/engines/hugo/sound.cpp b/engines/hugo/sound.cpp index 249d9145ce..91b3d29d4d 100644 --- a/engines/hugo/sound.cpp +++ b/engines/hugo/sound.cpp @@ -328,32 +328,4 @@ void SoundHandler::initSound() { _midiPlayer->open(); } -void SoundHandler::pauseSound(bool activeFl, int hTask) { - static bool firstFl = true; - static bool musicFl, soundFl; - - if (firstFl) { - firstFl = false; - musicFl = _config.musicFl; - soundFl = _config.soundFl; - } - - // Kill or restore music, sound - if (activeFl) { // Remember states, reset WinHelp flag - _config.musicFl = musicFl; - _config.soundFl = soundFl; - _vm.getGameStatus().helpFl = false; - } else { // Store states and disable - musicFl = _config.musicFl; - soundFl = _config.soundFl; - - // Don't disable music during WinHelp() or config.music_bkg - if (!_vm.getGameStatus().helpFl && !_config.backgroundMusicFl) { - _config.musicFl = false; - _config.soundFl = false; - } - } - initSound(); -} - } // end of namespace Hugo |