aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_v7.cpp
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2017-06-28 09:35:46 +0100
committerparamat <mat.gregory@virginmedia.com>2017-06-28 11:48:17 +0100
commit6d2833a8879b5dd64936991bf2a3e407f26357a7 (patch)
treeb672f486a085722724a703d665190950fe9eeb8f /src/mapgen_v7.cpp
parent85d7b18d851504e6d9f637c4373cf896b1ce8e4c (diff)
downloadminetest-6d2833a8879b5dd64936991bf2a3e407f26357a7.tar.gz
minetest-6d2833a8879b5dd64936991bf2a3e407f26357a7.tar.bz2
minetest-6d2833a8879b5dd64936991bf2a3e407f26357a7.zip
Mgv7: Fix undefined 'float_mount_height'
Commit cad10ce3b747b721fd63784915e05f12bc488128 altered the parameter 'float_mount_height' but was missing the necessary line in the constructor to get the altered value from 'params'. Fixes 3D floatland terrain generating everywhere.
Diffstat (limited to 'src/mapgen_v7.cpp')
-rw-r--r--src/mapgen_v7.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mapgen_v7.cpp b/src/mapgen_v7.cpp
index 4b1844a75..e361a8f12 100644
--- a/src/mapgen_v7.cpp
+++ b/src/mapgen_v7.cpp
@@ -68,6 +68,7 @@ MapgenV7::MapgenV7(int mapgenid, MapgenV7Params *params, EmergeManager *emerge)
// This is to avoid a divide-by-zero.
// Parameter will be saved to map_meta.txt in limited form.
params->float_mount_height = MYMAX(params->float_mount_height, 1.0f);
+ this->float_mount_height = params->float_mount_height;
// 2D noise
noise_terrain_base = new Noise(&params->np_terrain_base, seed, csize.X, csize.Z);