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_fractal.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_fractal.cpp')
-rw-r--r-- | src/mapgen_fractal.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mapgen_fractal.cpp b/src/mapgen_fractal.cpp index 50cb93d8c..eed2239e3 100644 --- a/src/mapgen_fractal.cpp +++ b/src/mapgen_fractal.cpp @@ -82,12 +82,12 @@ MapgenFractal::~MapgenFractal() } -MapgenFractalParams::MapgenFractalParams() +MapgenFractalParams::MapgenFractalParams(): + np_seabed (-14, 9, v3f(600, 600, 600), 41900, 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_seabed = NoiseParams(-14, 9, v3f(600, 600, 600), 41900, 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); } |