1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

mapgen: drop mapgen id from child mapgens.

This id must be owned by the child mapgen and never be set to a misc value by a developer

Also use nullptr in some places
This commit is contained in:
Loïc Blot 2019-03-25 16:42:53 +01:00 committed by Loïc Blot
parent b3716a03a6
commit b55fc3d773
18 changed files with 36 additions and 40 deletions

View file

@ -71,8 +71,7 @@ struct MapgenCarpathianParams : public MapgenParams
class MapgenCarpathian : public MapgenBasic
{
public:
MapgenCarpathian(int mapgenid, MapgenCarpathianParams *params,
EmergeManager *emerge);
MapgenCarpathian(MapgenCarpathianParams *params, EmergeManager *emerge);
~MapgenCarpathian();
virtual MapgenType getType() const { return MAPGEN_CARPATHIAN; }