diff --git a/source/glest_game/menu/menu_state_options_graphics.cpp b/source/glest_game/menu/menu_state_options_graphics.cpp index d25a9f19..f7cc8136 100644 --- a/source/glest_game/menu/menu_state_options_graphics.cpp +++ b/source/glest_game/menu/menu_state_options_graphics.cpp @@ -944,18 +944,6 @@ void MenuStateOptionsGraphics::saveConfig(){ LuaScript::setDisableSandbox(true); } - SoundRenderer &soundRenderer= SoundRenderer::getInstance(); - soundRenderer.stopAllSounds(); - program->stopSoundSystem(); - soundRenderer.init(program->getWindow()); - soundRenderer.loadConfig(); - soundRenderer.setMusicVolume(CoreData::getInstance().getMenuMusic()); - program->startSoundSystem(); - - if(CoreData::getInstance().hasMainMenuVideoFilename() == false) { - soundRenderer.playMusic(CoreData::getInstance().getMenuMusic()); - } - Renderer::getInstance().loadConfig(); console.addLine(lang.getString("SettingsSaved")); } diff --git a/source/glest_game/menu/menu_state_options_network.cpp b/source/glest_game/menu/menu_state_options_network.cpp index 0cf6914e..3542a4b3 100644 --- a/source/glest_game/menu/menu_state_options_network.cpp +++ b/source/glest_game/menu/menu_state_options_network.cpp @@ -523,18 +523,6 @@ void MenuStateOptionsNetwork::saveConfig(){ config.save(); - SoundRenderer &soundRenderer= SoundRenderer::getInstance(); - soundRenderer.stopAllSounds(); - program->stopSoundSystem(); - soundRenderer.init(program->getWindow()); - soundRenderer.loadConfig(); - soundRenderer.setMusicVolume(CoreData::getInstance().getMenuMusic()); - program->startSoundSystem(); - - if(CoreData::getInstance().hasMainMenuVideoFilename() == false) { - soundRenderer.playMusic(CoreData::getInstance().getMenuMusic()); - } - Renderer::getInstance().loadConfig(); console.addLine(lang.getString("SettingsSaved")); }