summaryrefslogtreecommitdiffstats
path: root/source/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Generating/ComposableGenerator.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/Generating/ComposableGenerator.cpp b/source/Generating/ComposableGenerator.cpp
index b809b249d..d08135afa 100644
--- a/source/Generating/ComposableGenerator.cpp
+++ b/source/Generating/ComposableGenerator.cpp
@@ -16,8 +16,10 @@
#include "CompoGen.h"
#include "StructGen.h"
#include "FinishGen.h"
-#include "Ravines.h"
+
#include "Caves.h"
+#include "MineShafts.h"
+#include "Ravines.h"
@@ -322,6 +324,12 @@ void cComposableGenerator::InitStructureGens(cIniFile & a_IniFile)
{
m_StructureGens.push_back(new cStructGenMarbleCaves(Seed));
}
+ else if (NoCaseCompare(*itr, "MineShafts") == 0)
+ {
+ int GridSize = a_IniFile.GetValueSetI("Generator", "MineShaftsGridSize", 96);
+ int MaxSystemSize = a_IniFile.GetValueSetI("Generator", "MineShaftsMaxSystemSize", 128);
+ m_StructureGens.push_back(new cStructGenMineShafts(Seed, GridSize, MaxSystemSize));
+ }
else if (NoCaseCompare(*itr, "OreNests") == 0)
{
m_StructureGens.push_back(new cStructGenOreNests(Seed));