diff options
author | Paul Gilbert | 2007-09-16 04:06:49 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-09-16 04:06:49 +0000 |
commit | b2e97060adf93760f7e4bce97e691e34fc258922 (patch) | |
tree | c646b990c339d55578600fcf33b608802d185366 /engines/lure/game.cpp | |
parent | 041bb546c652d301bc68630f309b623d89471bab (diff) | |
download | scummvm-rg350-b2e97060adf93760f7e4bce97e691e34fc258922.tar.gz scummvm-rg350-b2e97060adf93760f7e4bce97e691e34fc258922.tar.bz2 scummvm-rg350-b2e97060adf93760f7e4bce97e691e34fc258922.zip |
Initial sound implementation
svn-id: r28917
Diffstat (limited to 'engines/lure/game.cpp')
-rw-r--r-- | engines/lure/game.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/lure/game.cpp b/engines/lure/game.cpp index f3576bb3bd..e4aeef2253 100644 --- a/engines/lure/game.cpp +++ b/engines/lure/game.cpp @@ -33,6 +33,7 @@ #include "lure/strings.h" #include "common/config-manager.h" +#include "common/system.h" namespace Lure { @@ -300,7 +301,7 @@ void Game::handleMenuResponse(uint8 selection) { break; case MENUITEM_RESTART_GAME: - doQuit(); + doRestart(); break; case MENUITEM_SAVE_GAME: @@ -883,6 +884,7 @@ void Game::doSound() { _soundFlag = !_soundFlag; menu.getMenu(2).entries()[2] = sl.getString(_soundFlag ? S_SOUND_ON : S_SOUND_OFF); + Sound.setVolume(_soundFlag ? DEFAULT_VOLUME : 0); } void Game::handleBootParam(int value) { |