diff options
author | Dharkael <izhe@hotmail.es> | 2017-09-03 19:33:22 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-09-03 19:33:22 +0200 |
commit | 5bef3393889e0a29155a7e777d19344eaaae96b7 (patch) | |
tree | d5a432598cf861da5b1a7f0e10033832667f122e /src/mapgen_flat.cpp | |
parent | eabf04bd34b840ee3359609fc977cf4795b33a3a (diff) | |
download | minetest-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_flat.cpp')
-rw-r--r-- | src/mapgen_flat.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mapgen_flat.cpp b/src/mapgen_flat.cpp index 0343492d8..93f7f73ec 100644 --- a/src/mapgen_flat.cpp +++ b/src/mapgen_flat.cpp @@ -81,12 +81,12 @@ MapgenFlat::~MapgenFlat() } -MapgenFlatParams::MapgenFlatParams() +MapgenFlatParams::MapgenFlatParams(): + np_terrain (0, 1, v3f(600, 600, 600), 7244, 5, 0.6, 2.0), + np_filler_depth (0, 1.2, v3f(150, 150, 150), 261, 3, 0.7, 2.0), + np_cave1 (0, 12, v3f(61, 61, 61), 52534, 3, 0.5, 2.0), + np_cave2 (0, 12, v3f(67, 67, 67), 10325, 3, 0.5, 2.0) { - np_terrain = NoiseParams(0, 1, v3f(600, 600, 600), 7244, 5, 0.6, 2.0); - np_filler_depth = NoiseParams(0, 1.2, v3f(150, 150, 150), 261, 3, 0.7, 2.0); - np_cave1 = NoiseParams(0, 12, v3f(61, 61, 61), 52534, 3, 0.5, 2.0); - np_cave2 = NoiseParams(0, 12, v3f(67, 67, 67), 10325, 3, 0.5, 2.0); } |