From b2e97060adf93760f7e4bce97e691e34fc258922 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 16 Sep 2007 04:06:49 +0000 Subject: Initial sound implementation svn-id: r28917 --- engines/lure/game.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/lure/game.cpp') 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) { -- cgit v1.2.3