aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-08-22 12:53:02 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-08-22 12:53:02 +0300
commit23717510c21c89f39760faf033844d531fc093b5 (patch)
tree078e94632a2d622f0d45673d43e867b717496429 /src/mapgen.cpp
parent29c9d3d5f44ea6bb812a7d66d3ce582a1aeb7557 (diff)
parentdc4ac0b96fc11d4620f04d6068e681ab793a5d92 (diff)
downloadminetest-23717510c21c89f39760faf033844d531fc093b5.tar.gz
minetest-23717510c21c89f39760faf033844d531fc093b5.tar.bz2
minetest-23717510c21c89f39760faf033844d531fc093b5.zip
Merge branch 'lava'
Diffstat (limited to 'src/mapgen.cpp')
-rw-r--r--src/mapgen.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp
index 9effa8ac6..0018b9919 100644
--- a/src/mapgen.cpp
+++ b/src/mapgen.cpp
@@ -1817,6 +1817,16 @@ void make_block(BlockMakeData *data)
if(noisebuf_ground_wetness.get(x,y,z) < -0.6)
vmanip.m_data[i] = MapNode(CONTENT_GRAVEL);
}
+ else if(noisebuf_ground_crumbleness.get(x,y,z) <
+ -3.0 + MYMIN(0.1 * sqrt((float)MYMAX(0, -y)), 1.5))
+ {
+ vmanip.m_data[i] = MapNode(CONTENT_LAVASOURCE);
+ for(s16 x1=-1; x1<=1; x1++)
+ for(s16 y1=-1; y1<=1; y1++)
+ for(s16 z1=-1; z1<=1; z1++)
+ data->transforming_liquid.push_back(
+ v3s16(p2d.X+x1, y+y1, p2d.Y+z1));
+ }
}
data->vmanip->m_area.add_y(em, i, -1);