From 5bef3393889e0a29155a7e777d19344eaaae96b7 Mon Sep 17 00:00:00 2001 From: Dharkael Date: Sun, 3 Sep 2017 19:33:22 +0200 Subject: Use member initialization list instead of the constructor's body (#6371) * Use member initialization list instead of the constructor's body --- src/mapgen_flat.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mapgen_flat.cpp') 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); } -- cgit v1.2.3