From: paramat Date: Thu, 22 Jun 2017 02:48:22 +0000 (+0100) Subject: Mgvalleys: Use existing 'lava_max_height' value in CavesRandomWalk X-Git-Tag: 5.0.0~1067 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9a77397fbfb95a0b45ed33831291259626968500;p=oweals%2Fminetest.git Mgvalleys: Use existing 'lava_max_height' value in CavesRandomWalk Now that lava depth in large caves is variable we can use the already present 'lava_max_height' value to set the lava depth in them. --- diff --git a/src/mapgen_valleys.cpp b/src/mapgen_valleys.cpp index 8e5f3d3ac..cf982206b 100644 --- a/src/mapgen_valleys.cpp +++ b/src/mapgen_valleys.cpp @@ -733,7 +733,7 @@ void MapgenValleys::generateCaves(s16 max_stone_y, s16 large_cave_depth) u32 bruises_count = ps.range(0, 2); for (u32 i = 0; i < bruises_count; i++) { CavesRandomWalk cave(ndef, &gennotify, seed, water_level, - c_water_source, c_lava_source); + c_water_source, c_lava_source, lava_max_height); cave.makeCave(vm, node_min, node_max, &ps, true, max_stone_y, heightmap); }