Fix comments

This commit is contained in:
Loic Blot 2019-03-31 19:30:20 +02:00 committed by Loïc Blot
parent 64bdd4b509
commit a4677496f3
3 changed files with 6 additions and 6 deletions

@ -186,12 +186,12 @@ EmergeManager::~EmergeManager()
void EmergeManager::initMapgens(MapgenParams *params) 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; mgparams = params;
for (u32 i = 0; i != m_threads.size(); i++) 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, Mapgen *Mapgen::createMapgen(MapgenType mgtype, MapgenParams *params,
MapgenParams *params, EmergeManager *emerge) EmergeManager *emerge)
{ {
switch (mgtype) { switch (mgtype) {
case MAPGEN_CARPATHIAN: case MAPGEN_CARPATHIAN:

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