summaryrefslogtreecommitdiff
path: root/src/map_settings_manager.cpp
Commit message (Collapse)AuthorAge
* Server: properly delete ServerMap on interrupted startupsSmallJoker2021-02-05
| | | | A static mod error (e.g. typo) would abort the initialization but never free ServerMap
* Settings: Proper priority hierarchySmallJoker2021-01-29
| | | | | | | | | | | Remove old defaults system Introduce priority-based fallback list Use new functions for map_meta special functions Change groups to use end tags Unittest changes: * Adapt unittest to the new code * Compare Settings objects
* Mapgen: Fix on-by-default flags broken since eca6ee9 (#10318)SmallJoker2020-08-29
|
* Fix mapgen settings in minetest.conf being ignored (#9737)sfan52020-04-26
| | | broken since e8a8185d24897ccf964327017effae81aa1c9d40
* Settings: Fix game minetest.conf flags overriding defaults (#9404)SmallJoker2020-02-17
| | | | | | The game minetest.conf flags directly overwrote the global minetest.conf default values, resulting in unwanted erased mapgen flags. * Fix set_mapgen_setting
* mapgen: drop mapgen id from child mapgens.Loïc Blot2019-03-31
| | | | | | This id must be owned by the child mapgen and never be set to a misc value by a developer Also use nullptr in some places
* Move files to subdirectories (#6599)Vitaliy2017-11-08
| | | | * Move files around
* Cpp11 initializers 2 (#5999)Loïc Blot2017-06-17
| | | | | | | | | | * C++11 patchset 10: continue cleanup on constructors * Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop) * More classes cleanup * More classes cleanup + change NULL tests to boolean tests
* Fix various points reported by cppcheck (#5656)Loïc Blot2017-04-25
| | | | | | | | | | | | * Fix various performance issues reported by cppcheck + code style (CI) * Make CI happy with code style on master * guiFileSelectMenu: remove useless includes * some performance fixes pointed by cppcheck * remove some useless casts * TextDest: remove unused setFormSpec function * Fix various iterator post-increment reported by cppcheck
* Add MapSettingsManager and new mapgen setting script API functionskwolekr2016-07-03
This commit refactors the majority of the Mapgen settings system. - MapgenParams is now owned by MapSettingsManager, itself a part of ServerMap, instead of the EmergeManager. - New Script API functions added: core.get_mapgen_setting core.get_mapgen_setting_noiseparams, core.set_mapgen_setting, and core.set_mapgen_setting_noiseparams. - minetest.get/set_mapgen_params are deprecated by the above new functions. - It is now possible to view and modify any arbitrary mapgen setting from a mod, rather than the base MapgenParams structure. - MapgenSpecificParams has been removed.