aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_indev.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-04-27 22:40:52 -0400
committerkwolekr <kwolekr@minetest.net>2013-04-27 22:40:52 -0400
commit8767c781699a43e27185181979340f9712b3c236 (patch)
tree95038d22e28c948b8f6eb490f0103ed1f8cdc16e /src/mapgen_indev.cpp
parent0fb9567f1394646a71d42aa9bd7e6da8343c9784 (diff)
downloadminetest-8767c781699a43e27185181979340f9712b3c236.tar.gz
minetest-8767c781699a43e27185181979340f9712b3c236.tar.bz2
minetest-8767c781699a43e27185181979340f9712b3c236.zip
Enhance caves for mgv7, add ravines
Diffstat (limited to 'src/mapgen_indev.cpp')
-rw-r--r--src/mapgen_indev.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mapgen_indev.cpp b/src/mapgen_indev.cpp
index ce5cfbfeb..2eeaf13eb 100644
--- a/src/mapgen_indev.cpp
+++ b/src/mapgen_indev.cpp
@@ -274,23 +274,21 @@ void MapgenIndev::generateCaves(int max_stone_y) {
for (u32 i = 0; i < caves_count + bruises_count; i++) {
bool large_cave = (i >= caves_count);
- CaveIndev cave(this, &ps, &ps2, node_min, large_cave,
- c_water_source, c_lava_source);
+ CaveIndev cave(this, &ps, &ps2, node_min, large_cave);
cave.makeCave(node_min, node_max, max_stone_y);
}
}
-CaveIndev::CaveIndev(Mapgen *mg, PseudoRandom *ps, PseudoRandom *ps2,
- v3s16 node_min, bool is_large_cave,
- content_t c_water, content_t c_lava) {
+CaveIndev::CaveIndev(MapgenIndev *mg, PseudoRandom *ps, PseudoRandom *ps2,
+ v3s16 node_min, bool is_large_cave) {
this->vm = mg->vm;
this->water_level = mg->water_level;
this->large_cave = is_large_cave;
this->ps = ps;
this->ps2 = ps2;
- this->c_water_source = c_water;
- this->c_lava_source = c_lava;
+ this->c_water_source = mg->c_water_source;
+ this->c_lava_source = mg->c_lava_source;
min_tunnel_diameter = 2;
max_tunnel_diameter = ps->range(2,6);