aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_v7.cpp
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2017-06-30 14:32:35 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-06-30 15:32:35 +0200
commit2e53801fc0d9ba13afec6c1ddb5e3999f68b96bd (patch)
tree9506ff22e46d4ea83e3d12b094e4234a83ff7f61 /src/mapgen_v7.cpp
parent367d218f2b8c9d5fa754875407bd52c6bff771a7 (diff)
downloadminetest-2e53801fc0d9ba13afec6c1ddb5e3999f68b96bd.tar.gz
minetest-2e53801fc0d9ba13afec6c1ddb5e3999f68b96bd.tar.bz2
minetest-2e53801fc0d9ba13afec6c1ddb5e3999f68b96bd.zip
Mapgen: Remove unnecessary 'this->' from constructors (#6069)
Diffstat (limited to 'src/mapgen_v7.cpp')
-rw-r--r--src/mapgen_v7.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mapgen_v7.cpp b/src/mapgen_v7.cpp
index e361a8f12..17f2df835 100644
--- a/src/mapgen_v7.cpp
+++ b/src/mapgen_v7.cpp
@@ -54,21 +54,21 @@ FlagDesc flagdesc_mapgen_v7[] = {
MapgenV7::MapgenV7(int mapgenid, MapgenV7Params *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->float_mount_density = params->float_mount_density;
- this->floatland_level = params->floatland_level;
- this->shadow_limit = params->shadow_limit;
- this->cavern_limit = params->cavern_limit;
- this->cavern_taper = params->cavern_taper;
- this->cavern_threshold = params->cavern_threshold;
+ spflags = params->spflags;
+ cave_width = params->cave_width;
+ large_cave_depth = params->large_cave_depth;
+ lava_depth = params->lava_depth;
+ float_mount_density = params->float_mount_density;
+ floatland_level = params->floatland_level;
+ shadow_limit = params->shadow_limit;
+ cavern_limit = params->cavern_limit;
+ cavern_taper = params->cavern_taper;
+ cavern_threshold = params->cavern_threshold;
// This is to avoid a divide-by-zero.
// Parameter will be saved to map_meta.txt in limited form.
params->float_mount_height = MYMAX(params->float_mount_height, 1.0f);
- this->float_mount_height = params->float_mount_height;
+ float_mount_height = params->float_mount_height;
// 2D noise
noise_terrain_base = new Noise(&params->np_terrain_base, seed, csize.X, csize.Z);