summaryrefslogtreecommitdiff
path: root/src/mapgen_v5.cpp
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-06-13 01:26:56 +0100
committerparamat <mat.gregory@virginmedia.com>2015-06-15 02:07:38 +0100
commit38482d26563d8ad4680dd018266eb5dccb2a5874 (patch)
tree75ef5883fe6bc9ce744f7a4a14eb6b6853325772 /src/mapgen_v5.cpp
parentbb5f830d1653927cf6f712fc241006f00e1b70e8 (diff)
downloadminetest-38482d26563d8ad4680dd018266eb5dccb2a5874.tar.gz
minetest-38482d26563d8ad4680dd018266eb5dccb2a5874.tar.bz2
minetest-38482d26563d8ad4680dd018266eb5dccb2a5874.zip
Biome API: Enable biome generation to lower world limit
Decorations: Remove lower limit of water level for placement
Diffstat (limited to 'src/mapgen_v5.cpp')
-rw-r--r--src/mapgen_v5.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp
index 7c2a149fb..92febf43b 100644
--- a/src/mapgen_v5.cpp
+++ b/src/mapgen_v5.cpp
@@ -327,11 +327,9 @@ void MapgenV5::calculateNoise()
noise_cave2->perlinMap3D(x, y, z);
}
- if (node_max.Y >= BIOMEGEN_BASE_V5) {
- noise_filler_depth->perlinMap2D(x, z);
- noise_heat->perlinMap2D(x, z);
- noise_humidity->perlinMap2D(x, z);
- }
+ noise_filler_depth->perlinMap2D(x, z);
+ noise_heat->perlinMap2D(x, z);
+ noise_humidity->perlinMap2D(x, z);
//printf("calculateNoise: %dus\n", t.stop());
}
@@ -396,9 +394,6 @@ int MapgenV5::generateBaseTerrain()
MgStoneType MapgenV5::generateBiomes(float *heat_map, float *humidity_map)
{
- if (node_max.Y < BIOMEGEN_BASE_V5)
- return STONE;
-
v3s16 em = vm->m_area.getExtent();
u32 index = 0;
MgStoneType stone_type = STONE;