diff options
author | sfan5 <sfan5@live.de> | 2022-01-09 21:15:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-09 21:15:35 +0100 |
commit | 4c8c6497799c83cb5bac773ac4eac7ea572ec78f (patch) | |
tree | ffa67ce9002a94f6354eedbc94a1b768ed0cd336 /src/map_settings_manager.cpp | |
parent | b164e16d1be30220029729d63a1e621395ad00ad (diff) | |
download | minetest-4c8c6497799c83cb5bac773ac4eac7ea572ec78f.tar.gz minetest-4c8c6497799c83cb5bac773ac4eac7ea572ec78f.tar.bz2 minetest-4c8c6497799c83cb5bac773ac4eac7ea572ec78f.zip |
Mainmenu game-related changes (#11887)
fixes:
* Switching between games does not immediately hide creative mode / damage buttons if so specified
* World creation menu has a game selection list even though the menu already provides a gamebar
* Showing gameid in world list is unnecessary
* Choice of mapgen parameters in menu persists between games (and was half-broken)
Diffstat (limited to 'src/map_settings_manager.cpp')
-rw-r--r-- | src/map_settings_manager.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/map_settings_manager.cpp b/src/map_settings_manager.cpp index 7e86a9937..c75483edb 100644 --- a/src/map_settings_manager.cpp +++ b/src/map_settings_manager.cpp @@ -52,14 +52,7 @@ MapSettingsManager::~MapSettingsManager() bool MapSettingsManager::getMapSetting( const std::string &name, std::string *value_out) { - // Try getting it normally first - if (m_map_settings->getNoEx(name, *value_out)) - return true; - - // If not we may have to resolve some compatibility kludges - if (name == "seed") - return Settings::getLayer(SL_GLOBAL)->getNoEx("fixed_map_seed", *value_out); - return false; + return m_map_settings->getNoEx(name, *value_out); } |