diff options
Diffstat (limited to 'src/mapgen.cpp')
-rw-r--r-- | src/mapgen.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp index cec59389d..fe7f74cfa 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -98,11 +98,6 @@ STATIC_ASSERT( //// Mapgen //// -Mapgen::Mapgen() -{ -} - - Mapgen::Mapgen(int mapgenid, MapgenParams *params, EmergeManager *emerge) : gennotify(emerge->gen_notify_on, &emerge->gen_notify_on_deco_ids) { @@ -131,11 +126,6 @@ Mapgen::Mapgen(int mapgenid, MapgenParams *params, EmergeManager *emerge) : } -Mapgen::~Mapgen() -{ -} - - MapgenType Mapgen::getMapgenType(const std::string &mgname) { for (size_t i = 0; i != ARRLEN(g_reg_mapgens); i++) { @@ -283,7 +273,8 @@ s16 Mapgen::findLiquidSurface(v2s16 p2d, s16 ymin, s16 ymax) MapNode &n = vm->m_data[i]; if (ndef->get(n).walkable) return -MAX_MAP_GENERATION_LIMIT; - else if (ndef->get(n).isLiquid()) + + if (ndef->get(n).isLiquid()) break; vm->m_area.add_y(em, i, -1); @@ -939,11 +930,6 @@ void MapgenBasic::generateDungeons(s16 max_stone_y, //// GenerateNotifier //// -GenerateNotifier::GenerateNotifier() -{ -} - - GenerateNotifier::GenerateNotifier(u32 notify_on, std::set<u32> *notify_on_deco_ids) { |