mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02:00
Mgv5/v7/fractal: Add 'large_cave_depth' parameter to replace fixed value
The value cannot be fixed because we can shift terrain vertically. This also makes these mapgens consistent with mgflat and mgvalleys which have 'large_cave_depth' parameters.
This commit is contained in:
@@ -26,8 +26,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
|
||||
#include "mapgen.h"
|
||||
|
||||
#define MGFRACTAL_LARGE_CAVE_DEPTH -33
|
||||
|
||||
class BiomeManager;
|
||||
|
||||
extern FlagDesc flagdesc_mapgen_fractal[];
|
||||
@@ -36,6 +34,7 @@ struct MapgenFractalParams : public MapgenParams
|
||||
{
|
||||
u32 spflags = 0;
|
||||
float cave_width = 0.09f;
|
||||
s16 large_cave_depth = -33;
|
||||
u16 fractal = 1;
|
||||
u16 iterations = 11;
|
||||
v3f scale = v3f(4096.0, 1024.0, 4096.0);
|
||||
@@ -74,6 +73,7 @@ private:
|
||||
u16 formula;
|
||||
bool julia;
|
||||
|
||||
s16 large_cave_depth;
|
||||
u16 fractal;
|
||||
u16 iterations;
|
||||
v3f scale;
|
||||
|
Reference in New Issue
Block a user