diff options
author | Paramat <paramat@users.noreply.github.com> | 2017-06-30 14:32:35 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-30 15:32:35 +0200 |
commit | 2e53801fc0d9ba13afec6c1ddb5e3999f68b96bd (patch) | |
tree | 9506ff22e46d4ea83e3d12b094e4234a83ff7f61 /src/mapgen_fractal.cpp | |
parent | 367d218f2b8c9d5fa754875407bd52c6bff771a7 (diff) | |
download | minetest-2e53801fc0d9ba13afec6c1ddb5e3999f68b96bd.tar.gz minetest-2e53801fc0d9ba13afec6c1ddb5e3999f68b96bd.tar.bz2 minetest-2e53801fc0d9ba13afec6c1ddb5e3999f68b96bd.zip |
Mapgen: Remove unnecessary 'this->' from constructors (#6069)
Diffstat (limited to 'src/mapgen_fractal.cpp')
-rw-r--r-- | src/mapgen_fractal.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mapgen_fractal.cpp b/src/mapgen_fractal.cpp index b43dcd3f0..4fe0d8369 100644 --- a/src/mapgen_fractal.cpp +++ b/src/mapgen_fractal.cpp @@ -49,19 +49,19 @@ FlagDesc flagdesc_mapgen_fractal[] = { MapgenFractal::MapgenFractal(int mapgenid, MapgenFractalParams *params, EmergeManager *emerge) : MapgenBasic(mapgenid, params, emerge) { - this->spflags = params->spflags; - this->cave_width = params->cave_width; - this->large_cave_depth = params->large_cave_depth; - this->lava_depth = params->lava_depth; - this->fractal = params->fractal; - this->iterations = params->iterations; - this->scale = params->scale; - this->offset = params->offset; - this->slice_w = params->slice_w; - this->julia_x = params->julia_x; - this->julia_y = params->julia_y; - this->julia_z = params->julia_z; - this->julia_w = params->julia_w; + spflags = params->spflags; + cave_width = params->cave_width; + large_cave_depth = params->large_cave_depth; + lava_depth = params->lava_depth; + fractal = params->fractal; + iterations = params->iterations; + scale = params->scale; + offset = params->offset; + slice_w = params->slice_w; + julia_x = params->julia_x; + julia_y = params->julia_y; + julia_z = params->julia_z; + julia_w = params->julia_w; //// 2D terrain noise noise_seabed = new Noise(¶ms->np_seabed, seed, csize.X, csize.Z); @@ -70,8 +70,8 @@ MapgenFractal::MapgenFractal(int mapgenid, MapgenFractalParams *params, EmergeMa MapgenBasic::np_cave1 = params->np_cave1; MapgenBasic::np_cave2 = params->np_cave2; - this->formula = fractal / 2 + fractal % 2; - this->julia = fractal % 2 == 0; + formula = fractal / 2 + fractal % 2; + julia = fractal % 2 == 0; } |