From 8f7785771b9e02b1a1daf7a252550d78ea93053d Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sat, 17 Jun 2017 19:11:28 +0200 Subject: Cpp11 initializers 2 (#5999) * C++11 patchset 10: continue cleanup on constructors * Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop) * More classes cleanup * More classes cleanup + change NULL tests to boolean tests --- src/mapgen_valleys.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/mapgen_valleys.h') diff --git a/src/mapgen_valleys.h b/src/mapgen_valleys.h index 8a32a5a82..573f598a5 100644 --- a/src/mapgen_valleys.h +++ b/src/mapgen_valleys.h @@ -46,15 +46,15 @@ class BiomeGenOriginal; struct MapgenValleysParams : public MapgenParams { - u32 spflags; - s16 large_cave_depth; - s16 massive_cave_depth; - u16 altitude_chill; - u16 lava_features; - u16 river_depth; - u16 river_size; - u16 water_features; - float cave_width; + u32 spflags = MGVALLEYS_HUMID_RIVERS | MGVALLEYS_ALT_CHILL; + s16 large_cave_depth = -33; + s16 massive_cave_depth = -256; // highest altitude of massive caves + u16 altitude_chill = 90; // The altitude at which temperature drops by 20C. + u16 lava_features = 0; // How often water will occur in caves. + u16 river_depth = 4; // How deep to carve river channels. + u16 river_size = 5; // How wide to make rivers. + u16 water_features = 0; // How often water will occur in caves. + float cave_width = 0.09f; NoiseParams np_cave1; NoiseParams np_cave2; NoiseParams np_filler_depth; -- cgit v1.2.3