From 97764600e27f8872768a28ac4a379d1d82f86952 Mon Sep 17 00:00:00 2001 From: Paramat Date: Mon, 18 Nov 2019 23:40:01 +0000 Subject: 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'. --- src/mapgen/mapgen_v7.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/mapgen/mapgen_v7.cpp') diff --git a/src/mapgen/mapgen_v7.cpp b/src/mapgen/mapgen_v7.cpp index eaaff6ac6..a3cd8a557 100644 --- a/src/mapgen/mapgen_v7.cpp +++ b/src/mapgen/mapgen_v7.cpp @@ -64,7 +64,6 @@ MapgenV7::MapgenV7(MapgenV7Params *params, EmergeManager *emerge) cave_width = params->cave_width; large_cave_depth = params->large_cave_depth; - lava_depth = params->lava_depth; small_cave_num_min = params->small_cave_num_min; small_cave_num_max = params->small_cave_num_max; large_cave_num_min = params->large_cave_num_min; @@ -177,7 +176,6 @@ void MapgenV7Params::readParams(const Settings *settings) settings->getS16NoEx("mgv7_mount_zero_level", mount_zero_level); settings->getFloatNoEx("mgv7_cave_width", cave_width); settings->getS16NoEx("mgv7_large_cave_depth", large_cave_depth); - settings->getS16NoEx("mgv7_lava_depth", lava_depth); settings->getU16NoEx("mgv7_small_cave_num_min", small_cave_num_min); settings->getU16NoEx("mgv7_small_cave_num_max", small_cave_num_max); settings->getU16NoEx("mgv7_large_cave_num_min", large_cave_num_min); @@ -218,7 +216,6 @@ void MapgenV7Params::writeParams(Settings *settings) const settings->setS16("mgv7_mount_zero_level", mount_zero_level); settings->setFloat("mgv7_cave_width", cave_width); settings->setS16("mgv7_large_cave_depth", large_cave_depth); - settings->setS16("mgv7_lava_depth", lava_depth); settings->setU16("mgv7_small_cave_num_min", small_cave_num_min); settings->setU16("mgv7_small_cave_num_max", small_cave_num_max); settings->setU16("mgv7_large_cave_num_min", large_cave_num_min); -- cgit v1.2.3