diff options
author | Paramat <paramat@users.noreply.github.com> | 2020-09-03 01:28:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 01:28:40 +0100 |
commit | 4ba5046308d6bdf7b38394770c6f82b6927393f2 (patch) | |
tree | 835812e435c2bfbb3656ad0b6226af3e979718ae /src/mapgen/mapgen.cpp | |
parent | 74e22b72e1fc577d05ea703aed4bfa8c1e1f0599 (diff) | |
download | minetest-4ba5046308d6bdf7b38394770c6f82b6927393f2.tar.gz minetest-4ba5046308d6bdf7b38394770c6f82b6927393f2.tar.bz2 minetest-4ba5046308d6bdf7b38394770c6f82b6927393f2.zip |
Add 'ores' global mapgen flag (#10276)
Diffstat (limited to 'src/mapgen/mapgen.cpp')
-rw-r--r-- | src/mapgen/mapgen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mapgen/mapgen.cpp b/src/mapgen/mapgen.cpp index f57529082..52ef64e7e 100644 --- a/src/mapgen/mapgen.cpp +++ b/src/mapgen/mapgen.cpp @@ -58,6 +58,7 @@ FlagDesc flagdesc_mapgen[] = { {"light", MG_LIGHT}, {"decorations", MG_DECORATIONS}, {"biomes", MG_BIOMES}, + {"ores", MG_ORES}, {NULL, 0} }; @@ -217,7 +218,7 @@ void Mapgen::getMapgenNames(std::vector<const char *> *mgnames, bool include_hid void Mapgen::setDefaultSettings(Settings *settings) { settings->setDefault("mg_flags", flagdesc_mapgen, - MG_CAVES | MG_DUNGEONS | MG_LIGHT | MG_DECORATIONS | MG_BIOMES); + MG_CAVES | MG_DUNGEONS | MG_LIGHT | MG_DECORATIONS | MG_BIOMES | MG_ORES); for (int i = 0; i < (int)MAPGEN_INVALID; ++i) { MapgenParams *params = createMapgenParams((MapgenType)i); |