aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen/mapgen_v5.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapgen/mapgen_v5.h')
-rw-r--r--src/mapgen/mapgen_v5.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mapgen/mapgen_v5.h b/src/mapgen/mapgen_v5.h
index 1a3b6d3c3..17bc466f0 100644
--- a/src/mapgen/mapgen_v5.h
+++ b/src/mapgen/mapgen_v5.h
@@ -31,10 +31,13 @@ extern FlagDesc flagdesc_mapgen_v5[];
struct MapgenV5Params : public MapgenParams
{
- u32 spflags = MGV5_CAVERNS;
float cave_width = 0.09f;
s16 large_cave_depth = -256;
- s16 lava_depth = -256;
+ u16 small_cave_num_min = 0;
+ u16 small_cave_num_max = 0;
+ u16 large_cave_num_min = 0;
+ u16 large_cave_num_max = 2;
+ float large_cave_flooded = 0.5f;
s16 cavern_limit = -256;
s16 cavern_taper = 256;
float cavern_threshold = 0.7f;
@@ -55,6 +58,7 @@ struct MapgenV5Params : public MapgenParams
void readParams(const Settings *settings);
void writeParams(Settings *settings) const;
+ void setDefaultSettings(Settings *settings);
};
class MapgenV5 : public MapgenBasic
@@ -70,10 +74,6 @@ public:
int generateBaseTerrain();
private:
- s16 large_cave_depth;
- s16 dungeon_ymin;
- s16 dungeon_ymax;
-
Noise *noise_factor;
Noise *noise_height;
Noise *noise_ground;