diff options
author | kwolekr <kwolekr@minetest.net> | 2016-05-10 13:21:13 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2016-05-27 23:23:58 -0400 |
commit | a605d690921670008d605d067f1cf8cd1619def7 (patch) | |
tree | 6835d2a737063077be5022775248c10c990566a0 /src/mapgen_v6.cpp | |
parent | bf25837617541eee0317e1231abca65233edeb8e (diff) | |
download | minetest-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.cpp | 7 |
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); } } |