projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08f57e1
)
Mgvalleys: Use existing 'lava_max_height' value in CavesRandomWalk
author
paramat
<paramat@users.noreply.github.com>
Thu, 22 Jun 2017 02:48:22 +0000
(
03:48
+0100)
committer
paramat
<mat.gregory@virginmedia.com>
Sat, 24 Jun 2017 00:48:20 +0000
(
01:48
+0100)
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.
src/mapgen_valleys.cpp
patch
|
blob
|
history
diff --git
a/src/mapgen_valleys.cpp
b/src/mapgen_valleys.cpp
index 8e5f3d3acd00adf66b7f4a75598e9659cfda2947..cf982206ba44a5ed73c4e3d372f44e1b44c8b906 100644
(file)
--- 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);
}