From 9ee47e59995f858ec531b3ee467f131594e4ba1f Mon Sep 17 00:00:00 2001 From: Mattes D Date: Mon, 13 Apr 2020 18:38:06 +0200 Subject: Using Super. --- src/Generating/Caves.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/Generating/Caves.h') diff --git a/src/Generating/Caves.h b/src/Generating/Caves.h index cf47d9a92..82545b4e0 100644 --- a/src/Generating/Caves.h +++ b/src/Generating/Caves.h @@ -62,13 +62,15 @@ protected: -class cStructGenWormNestCaves : +class cStructGenWormNestCaves: public cGridStructGen { - typedef cGridStructGen super; + using Super = cGridStructGen; + public: + cStructGenWormNestCaves(int a_Seed, int a_Size = 64, int a_Grid = 96, int a_MaxOffset = 128) : - super(a_Seed, a_Grid, a_Grid, a_MaxOffset, a_MaxOffset, a_Size, a_Size, 100), + Super(a_Seed, a_Grid, a_Grid, a_MaxOffset, a_MaxOffset, a_Size, a_Size, 100), m_Size(a_Size), m_MaxOffset(a_MaxOffset), m_Grid(a_Grid) @@ -76,6 +78,7 @@ public: } protected: + class cCaveSystem; // fwd: Caves.cpp int m_Size; // relative size of the cave systems' caves. Average number of blocks of each initial tunnel -- cgit v1.2.3