diff options
Diffstat (limited to 'src/mapgen/mapgen_flat.h')
-rw-r--r-- | src/mapgen/mapgen_flat.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mapgen/mapgen_flat.h b/src/mapgen/mapgen_flat.h index d2598695f..c314c7605 100644 --- a/src/mapgen/mapgen_flat.h +++ b/src/mapgen/mapgen_flat.h @@ -32,10 +32,13 @@ extern FlagDesc flagdesc_mapgen_flat[]; struct MapgenFlatParams : public MapgenParams { - u32 spflags = 0; s16 ground_level = 8; s16 large_cave_depth = -33; - 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; float cave_width = 0.09f; float lake_threshold = -0.45f; float lake_steepness = 48.0f; @@ -55,6 +58,7 @@ struct MapgenFlatParams : public MapgenParams void readParams(const Settings *settings); void writeParams(Settings *settings) const; + void setDefaultSettings(Settings *settings); }; class MapgenFlat : public MapgenBasic @@ -71,13 +75,10 @@ public: private: s16 ground_level; - s16 large_cave_depth; float lake_threshold; float lake_steepness; float hill_threshold; float hill_steepness; - s16 dungeon_ymin; - s16 dungeon_ymax; Noise *noise_terrain; }; |