mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
CavesRandomWalk: Make 'lava_depth' a mapgen parameter
As with 'large_cave_depth', lava depth was previously a fixed y value and therefore incompatible with the ability to shift terrain vertically. Add 'lava_depth' mapgen parameter to mgflat, mgfractal, mgv5, mgv7.
This commit is contained in:
@@ -258,7 +258,8 @@ CavesRandomWalk::CavesRandomWalk(
|
||||
s32 seed,
|
||||
int water_level,
|
||||
content_t water_source,
|
||||
content_t lava_source)
|
||||
content_t lava_source,
|
||||
int lava_depth)
|
||||
{
|
||||
assert(ndef);
|
||||
|
||||
@@ -267,7 +268,7 @@ CavesRandomWalk::CavesRandomWalk(
|
||||
this->seed = seed;
|
||||
this->water_level = water_level;
|
||||
this->np_caveliquids = &nparams_caveliquids;
|
||||
this->lava_depth = DEFAULT_LAVA_DEPTH;
|
||||
this->lava_depth = lava_depth;
|
||||
|
||||
c_water_source = water_source;
|
||||
if (c_water_source == CONTENT_IGNORE)
|
||||
|
Reference in New Issue
Block a user