mirror of
https://github.com/minetest/minetest.git
synced 2025-01-10 18:10:21 +01:00
Mgv7: Fix undefined 'float_mount_height'
Commit cad10ce3b7
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.
This commit is contained in:
parent
85d7b18d85
commit
6d2833a887
@ -68,6 +68,7 @@ MapgenV7::MapgenV7(int mapgenid, MapgenV7Params *params, EmergeManager *emerge)
|
|||||||
// This is to avoid a divide-by-zero.
|
// This is to avoid a divide-by-zero.
|
||||||
// Parameter will be saved to map_meta.txt in limited form.
|
// Parameter will be saved to map_meta.txt in limited form.
|
||||||
params->float_mount_height = MYMAX(params->float_mount_height, 1.0f);
|
params->float_mount_height = MYMAX(params->float_mount_height, 1.0f);
|
||||||
|
this->float_mount_height = params->float_mount_height;
|
||||||
|
|
||||||
// 2D noise
|
// 2D noise
|
||||||
noise_terrain_base = new Noise(¶ms->np_terrain_base, seed, csize.X, csize.Z);
|
noise_terrain_base = new Noise(¶ms->np_terrain_base, seed, csize.X, csize.Z);
|
||||||
|
Loading…
Reference in New Issue
Block a user