aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-04-16 03:45:42 +0100
committerparamat <mat.gregory@virginmedia.com>2015-04-16 04:01:58 +0100
commitad789be45b1ec1333f5908b89efd85f5b29fb940 (patch)
tree729d46d309f70108bd1358fe02b7a202bc100269
parenta09e4427d69db57115cb4ba4644725d1e4470a65 (diff)
downloadminetest-ad789be45b1ec1333f5908b89efd85f5b29fb940.tar.gz
minetest-ad789be45b1ec1333f5908b89efd85f5b29fb940.tar.bz2
minetest-ad789be45b1ec1333f5908b89efd85f5b29fb940.zip
Mgv5/v7: Add check for water for deciding biome node stability
-rw-r--r--src/mapgen_v5.cpp2
-rw-r--r--src/mapgen_v7.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp
index 2284c1ecc..6c3d678ea 100644
--- a/src/mapgen_v5.cpp
+++ b/src/mapgen_v5.cpp
@@ -426,7 +426,7 @@ bool MapgenV5::generateBiomes(float *heat_map, float *humidity_map)
if (c == c_stone && have_air) {
content_t c_below = vm->m_data[i - em.X].getContent();
- if (c_below != CONTENT_AIR) {
+ if (c_below != CONTENT_AIR && c_below != c_water_source) {
if (nplaced < y0_top) {
vm->m_data[i] = MapNode(biome->c_top);
nplaced++;
diff --git a/src/mapgen_v7.cpp b/src/mapgen_v7.cpp
index 12ca12a86..443aea281 100644
--- a/src/mapgen_v7.cpp
+++ b/src/mapgen_v7.cpp
@@ -620,7 +620,7 @@ bool MapgenV7::generateBiomes(float *heat_map, float *humidity_map)
if (c == c_stone && have_air) {
content_t c_below = vm->m_data[i - em.X].getContent();
- if (c_below != CONTENT_AIR) {
+ if (c_below != CONTENT_AIR && c_below != c_water_source) {
if (nplaced < y0_top) {
vm->m_data[i] = MapNode(biome->c_top);
nplaced++;