diff options
author | paramat <paramat@users.noreply.github.com> | 2017-09-17 00:26:20 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-09-17 05:31:48 +0100 |
commit | 27144b471678b30156ad3383fb8d26a5bd9b66cb (patch) | |
tree | 853db5930973f5d6c7ef3f1b6e4c354123f7dc8a /src/mapgen_v5.cpp | |
parent | 76817fdf98b1597c569267bc751f4f285302721a (diff) | |
download | minetest-27144b471678b30156ad3383fb8d26a5bd9b66cb.tar.gz minetest-27144b471678b30156ad3383fb8d26a5bd9b66cb.tar.bz2 minetest-27144b471678b30156ad3383fb8d26a5bd9b66cb.zip |
Biome API: Revert biomes, decos, ores being relative to water level
Feature is unnecessary and would greatly complicate future development,
it would also make 'get biome at pos' extremely complex.
Mgv7: Revert option to repeat surface biomes in floatlands, which
depended on the above.
Diffstat (limited to 'src/mapgen_v5.cpp')
-rw-r--r-- | src/mapgen_v5.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp index c02d1c125..5f5487288 100644 --- a/src/mapgen_v5.cpp +++ b/src/mapgen_v5.cpp @@ -204,7 +204,7 @@ void MapgenV5::makeChunk(BlockMakeData *data) MgStoneType mgstone_type; content_t biome_stone; - generateBiomes(&mgstone_type, &biome_stone, water_level - 1); + generateBiomes(&mgstone_type, &biome_stone); // Generate caverns, tunnels and classic caves if (flags & MG_CAVES) { @@ -228,12 +228,10 @@ void MapgenV5::makeChunk(BlockMakeData *data) // Generate the registered decorations if (flags & MG_DECORATIONS) - m_emerge->decomgr->placeAllDecos(this, blockseed, - node_min, node_max, water_level - 1); + m_emerge->decomgr->placeAllDecos(this, blockseed, node_min, node_max); // Generate the registered ores - m_emerge->oremgr->placeAllOres(this, blockseed, - node_min, node_max, water_level - 1); + m_emerge->oremgr->placeAllOres(this, blockseed, node_min, node_max); // Sprinkle some dust on top after everything else was generated dustTopNodes(); |