From b55fc3d773e2049d99a01ea2aa4e37774e81410b Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Mon, 25 Mar 2019 16:42:53 +0100 Subject: 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 --- src/mapgen/mapgen_valleys.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mapgen/mapgen_valleys.cpp') diff --git a/src/mapgen/mapgen_valleys.cpp b/src/mapgen/mapgen_valleys.cpp index a27a31201..b8eb5b5f9 100644 --- a/src/mapgen/mapgen_valleys.cpp +++ b/src/mapgen/mapgen_valleys.cpp @@ -54,9 +54,8 @@ FlagDesc flagdesc_mapgen_valleys[] = { }; -MapgenValleys::MapgenValleys(int mapgenid, MapgenValleysParams *params, - EmergeManager *emerge) - : MapgenBasic(mapgenid, params, emerge) +MapgenValleys::MapgenValleys(MapgenValleysParams *params, EmergeManager *emerge) + : MapgenBasic(MAPGEN_VALLEYS, params, emerge) { // NOTE: MapgenValleys has a hard dependency on BiomeGenOriginal m_bgen = (BiomeGenOriginal *)biomegen; -- cgit v1.2.3