summaryrefslogtreecommitdiff
path: root/src/mapgen_v5.cpp
diff options
context:
space:
mode:
authorDharkael <izhe@hotmail.es>2017-09-03 19:33:22 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-09-03 19:33:22 +0200
commit5bef3393889e0a29155a7e777d19344eaaae96b7 (patch)
treed5a432598cf861da5b1a7f0e10033832667f122e /src/mapgen_v5.cpp
parenteabf04bd34b840ee3359609fc977cf4795b33a3a (diff)
downloadminetest-5bef3393889e0a29155a7e777d19344eaaae96b7.tar.gz
minetest-5bef3393889e0a29155a7e777d19344eaaae96b7.tar.bz2
minetest-5bef3393889e0a29155a7e777d19344eaaae96b7.zip
Use member initialization list instead of the constructor's body (#6371)
* Use member initialization list instead of the constructor's body
Diffstat (limited to 'src/mapgen_v5.cpp')
-rw-r--r--src/mapgen_v5.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp
index d7e9d6664..c02d1c125 100644
--- a/src/mapgen_v5.cpp
+++ b/src/mapgen_v5.cpp
@@ -80,15 +80,15 @@ MapgenV5::~MapgenV5()
}
-MapgenV5Params::MapgenV5Params()
+MapgenV5Params::MapgenV5Params():
+ np_filler_depth (0, 1, v3f(150, 150, 150), 261, 4, 0.7, 2.0),
+ np_factor (0, 1, v3f(250, 250, 250), 920381, 3, 0.45, 2.0),
+ np_height (0, 10, v3f(250, 250, 250), 84174, 4, 0.5, 2.0),
+ np_ground (0, 40, v3f(80, 80, 80), 983240, 4, 0.55, 2.0, NOISE_FLAG_EASED),
+ np_cave1 (0, 12, v3f(50, 50, 50), 52534, 4, 0.5, 2.0),
+ np_cave2 (0, 12, v3f(50, 50, 50), 10325, 4, 0.5, 2.0),
+ np_cavern (0, 1, v3f(384, 128, 384), 723, 5, 0.63, 2.0)
{
- np_filler_depth = NoiseParams(0, 1, v3f(150, 150, 150), 261, 4, 0.7, 2.0);
- np_factor = NoiseParams(0, 1, v3f(250, 250, 250), 920381, 3, 0.45, 2.0);
- np_height = NoiseParams(0, 10, v3f(250, 250, 250), 84174, 4, 0.5, 2.0);
- np_ground = NoiseParams(0, 40, v3f(80, 80, 80), 983240, 4, 0.55, 2.0, NOISE_FLAG_EASED);
- np_cave1 = NoiseParams(0, 12, v3f(50, 50, 50), 52534, 4, 0.5, 2.0);
- np_cave2 = NoiseParams(0, 12, v3f(50, 50, 50), 10325, 4, 0.5, 2.0);
- np_cavern = NoiseParams(0, 1, v3f(384, 128, 384), 723, 5, 0.63, 2.0);
}