aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_v6.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2016-05-10 13:21:13 -0400
committerkwolekr <kwolekr@minetest.net>2016-05-27 23:23:58 -0400
commita605d690921670008d605d067f1cf8cd1619def7 (patch)
tree6835d2a737063077be5022775248c10c990566a0 /src/mapgen_v6.cpp
parentbf25837617541eee0317e1231abca65233edeb8e (diff)
downloadminetest-a605d690921670008d605d067f1cf8cd1619def7.tar.gz
minetest-a605d690921670008d605d067f1cf8cd1619def7.tar.bz2
minetest-a605d690921670008d605d067f1cf8cd1619def7.zip
Cavegen: Remove CavesV6 dependency on Mapgen
Diffstat (limited to 'src/mapgen_v6.cpp')
-rw-r--r--src/mapgen_v6.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp
index d143f12e9..65acfaf93 100644
--- a/src/mapgen_v6.cpp
+++ b/src/mapgen_v6.cpp
@@ -1066,9 +1066,10 @@ void MapgenV6::generateCaves(int max_stone_y)
}
for (u32 i = 0; i < caves_count + bruises_count; i++) {
- bool large_cave = (i >= caves_count);
- CavesV6 cave(this, &ps, &ps2, large_cave);
+ CavesV6 cave(ndef, &gennotify, water_level, c_water_source, c_lava_source);
- cave.makeCave(node_min, node_max, max_stone_y);
+ bool large_cave = (i >= caves_count);
+ cave.makeCave(vm, node_min, node_max, &ps, &ps2,
+ large_cave, max_stone_y, heightmap);
}
}