Skip to content
Permalink
Browse files

Fix comments

  • Loading branch information
nerzhul committed Mar 31, 2019
1 parent 64bdd4b commit a4677496f347a3c9bd66b39ca535f8346bac1708
Showing with 6 additions and 6 deletions.
  1. +2 −2 src/emerge.cpp
  2. +2 −2 src/mapgen/mapgen.cpp
  3. +2 −2 src/mapgen/mapgen.h
@@ -186,12 +186,12 @@ EmergeManager::~EmergeManager()

void EmergeManager::initMapgens(MapgenParams *params)
{
FATAL_ERROR_IF(!m_mapgens.empty(), "mapgen already inited.");
FATAL_ERROR_IF(!m_mapgens.empty(), "Mapgen already initialised.");

mgparams = params;

for (u32 i = 0; i != m_threads.size(); i++)
m_mapgens.push_back(Mapgen::createMapgen(params->mgtype, i, params, this));
m_mapgens.push_back(Mapgen::createMapgen(params->mgtype, params, this));
}


@@ -148,8 +148,8 @@ const char *Mapgen::getMapgenName(MapgenType mgtype)
}


Mapgen *Mapgen::createMapgen(MapgenType mgtype, int mgid,
MapgenParams *params, EmergeManager *emerge)
Mapgen *Mapgen::createMapgen(MapgenType mgtype, MapgenParams *params,
EmergeManager *emerge)
{
switch (mgtype) {
case MAPGEN_CARPATHIAN:
@@ -208,8 +208,8 @@ class Mapgen {
// Mapgen management functions
static MapgenType getMapgenType(const std::string &mgname);
static const char *getMapgenName(MapgenType mgtype);
static Mapgen *createMapgen(MapgenType mgtype, int mgid,
MapgenParams *params, EmergeManager *emerge);
static Mapgen *createMapgen(MapgenType mgtype, MapgenParams *params,
EmergeManager *emerge);
static MapgenParams *createMapgenParams(MapgenType mgtype);
static void getMapgenNames(std::vector<const char *> *mgnames, bool include_hidden);

0 comments on commit a467749

Please sign in to comment.