summaryrefslogtreecommitdiff
path: root/src/mapgen/cavegen.h
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2019-11-18 23:40:01 +0000
committerGitHub <noreply@github.com>2019-11-18 23:40:01 +0000
commit97764600e27f8872768a28ac4a379d1d82f86952 (patch)
tree1e28408bf50648c7691f52401af4934984edfa9c /src/mapgen/cavegen.h
parent706b6aad06a112f55105f08b6acd130b276a06ca (diff)
downloadminetest-97764600e27f8872768a28ac4a379d1d82f86952.tar.gz
minetest-97764600e27f8872768a28ac4a379d1d82f86952.tar.bz2
minetest-97764600e27f8872768a28ac4a379d1d82f86952.zip
Randomwalk cave liquids: Remove deprecated 'lava depth' parameter (#9105)
Low-disruption first step towards removing the hardcoded cave liquid code. Since MT 5.0.0 cave liquids can be defined and located by biome definitions instead. In games that do not yet use biome definitions to define and locate cave liquids (MTGame does), lava will now appear below y = water_level - 256 instead of below 'lava depth' (usually y = -256). Therefore no change in most mapgens if using the default 'lava depth'.
Diffstat (limited to 'src/mapgen/cavegen.h')
-rw-r--r--src/mapgen/cavegen.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mapgen/cavegen.h b/src/mapgen/cavegen.h
index dc73e83f1..ff09f9423 100644
--- a/src/mapgen/cavegen.h
+++ b/src/mapgen/cavegen.h
@@ -119,9 +119,8 @@ public:
s32 seed;
int water_level;
float large_cave_flooded;
- // TODO 'lava_depth' and 'np_caveliquids' are deprecated and should be removed.
+ // TODO 'np_caveliquids' is deprecated and should eventually be removed.
// Cave liquids are now defined and located using biome definitions.
- int lava_depth;
NoiseParams *np_caveliquids;
u16 ystride;
@@ -160,8 +159,7 @@ public:
CavesRandomWalk(const NodeDefManager *ndef, GenerateNotifier *gennotify =
NULL, s32 seed = 0, int water_level = 1, content_t water_source =
CONTENT_IGNORE, content_t lava_source = CONTENT_IGNORE,
- float large_cave_flooded = 0.5f, int lava_depth = -256,
- BiomeGen *biomegen = NULL);
+ float large_cave_flooded = 0.5f, BiomeGen *biomegen = NULL);
// vm and ps are mandatory parameters.
// If heightmap is NULL, the surface level at all points is assumed to