X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmisc.cpp;h=b8279b5850bf6673cff1e58cf134d4d9d15e3bd0;hb=5c14f6f384eff76491d494b4c157abf2ff776d49;hp=ce56585abadad4cdbbd9f9dd4c898fff90b64b3b;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/misc.cpp b/src/misc.cpp index ce56585ab..b8279b585 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -47,18 +47,21 @@ void process_options_menu() if(config->use_fullscreen != options_menu->is_toggled(MNID_FULLSCREEN)) { config->use_fullscreen = !config->use_fullscreen; init_video(); + config->save(); } break; case MNID_SOUND: if(config->sound_enabled != options_menu->is_toggled(MNID_SOUND)) { config->sound_enabled = !config->sound_enabled; sound_manager->enable_sound(config->sound_enabled); + config->save(); } break; case MNID_MUSIC: if(config->music_enabled != options_menu->is_toggled(MNID_MUSIC)) { config->music_enabled = !config->music_enabled; sound_manager->enable_music(config->music_enabled); + config->save(); } break; default: @@ -80,7 +83,7 @@ void setup_menu() main_menu->add_submenu(_("Start Game"), load_game_menu, MNID_STARTGAME); main_menu->add_submenu(_("Contrib Levels"), contrib_menu, MNID_LEVELS_CONTRIB); main_menu->add_submenu(_("Options"), options_menu); - main_menu->add_entry(MNID_LEVELEDITOR, _("Level Editor")); + //main_menu->add_entry(MNID_LEVELEDITOR, _("Level Editor")); main_menu->add_entry(MNID_CREDITS, _("Credits")); main_menu->add_entry(MNID_QUITMAINMENU, _("Quit"));