diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-17 19:11:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-17 19:11:28 +0200 |
commit | 8f7785771b9e02b1a1daf7a252550d78ea93053d (patch) | |
tree | 7a4e4b524dbc63fed3dac99a3844b634cc621d0d /src/mapgen.cpp | |
parent | 76be103a91d6987527af19e87d93007be8ba8a67 (diff) | |
download | minetest-8f7785771b9e02b1a1daf7a252550d78ea93053d.tar.gz minetest-8f7785771b9e02b1a1daf7a252550d78ea93053d.tar.bz2 minetest-8f7785771b9e02b1a1daf7a252550d78ea93053d.zip |
Cpp11 initializers 2 (#5999)
* C++11 patchset 10: continue cleanup on constructors
* Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop)
* More classes cleanup
* More classes cleanup + change NULL tests to boolean tests
Diffstat (limited to 'src/mapgen.cpp')
-rw-r--r-- | src/mapgen.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 1aa3be302..70de8c8e8 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -98,25 +98,12 @@ STATIC_ASSERT( Mapgen::Mapgen() { - generating = false; - id = -1; - seed = 0; - water_level = 0; - mapgen_limit = 0; - flags = 0; - - vm = NULL; - ndef = NULL; - biomegen = NULL; - biomemap = NULL; - heightmap = NULL; } Mapgen::Mapgen(int mapgenid, MapgenParams *params, EmergeManager *emerge) : gennotify(emerge->gen_notify_on, &emerge->gen_notify_on_deco_ids) { - generating = false; id = mapgenid; water_level = params->water_level; mapgen_limit = params->mapgen_limit; @@ -138,11 +125,7 @@ Mapgen::Mapgen(int mapgenid, MapgenParams *params, EmergeManager *emerge) : */ seed = (s32)params->seed; - vm = NULL; ndef = emerge->ndef; - biomegen = NULL; - biomemap = NULL; - heightmap = NULL; } @@ -929,7 +912,6 @@ void MapgenBasic::generateDungeons(s16 max_stone_y, MgStoneType stone_type) GenerateNotifier::GenerateNotifier() { - m_notify_on = 0; } |