summaryrefslogtreecommitdiffstats
path: root/source/cChunkGenerator.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-22 20:51:38 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-22 20:51:38 +0200
commit3f30d5dfd29484c0201118ff525863d8ce266aa8 (patch)
tree14b33499d08ea5da09b616394b8597117008fc05 /source/cChunkGenerator.cpp
parentRavines: removed an unneeded member (diff)
downloadcuberite-3f30d5dfd29484c0201118ff525863d8ce266aa8.tar
cuberite-3f30d5dfd29484c0201118ff525863d8ce266aa8.tar.gz
cuberite-3f30d5dfd29484c0201118ff525863d8ce266aa8.tar.bz2
cuberite-3f30d5dfd29484c0201118ff525863d8ce266aa8.tar.lz
cuberite-3f30d5dfd29484c0201118ff525863d8ce266aa8.tar.xz
cuberite-3f30d5dfd29484c0201118ff525863d8ce266aa8.tar.zst
cuberite-3f30d5dfd29484c0201118ff525863d8ce266aa8.zip
Diffstat (limited to 'source/cChunkGenerator.cpp')
-rw-r--r--source/cChunkGenerator.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/cChunkGenerator.cpp b/source/cChunkGenerator.cpp
index 01e2f37f1..3e8a6e9e9 100644
--- a/source/cChunkGenerator.cpp
+++ b/source/cChunkGenerator.cpp
@@ -13,6 +13,7 @@
#include "cPluginManager.h"
#include "cLuaChunk.h"
#include "Ravines.h"
+#include "Caves.h"
@@ -312,6 +313,11 @@ void cChunkGenerator::InitStructureGens(cIniFile & a_IniFile)
{
m_StructureGens.push_back(new cStructGenMarbleCaves(m_Seed));
}
+ else if (NoCaseCompare(*itr, "dualridgecaves") == 0)
+ {
+ float Threshold = (float)a_IniFile.GetValueSetF("Generator", "DualRidgeCavesThreshold", 0.3);
+ m_StructureGens.push_back(new cStructGenDualRidgeCaves(m_Seed, Threshold));
+ }
else if (NoCaseCompare(*itr, "orenests") == 0)
{
m_StructureGens.push_back(new cStructGenOreNests(m_Seed));
@@ -320,6 +326,13 @@ void cChunkGenerator::InitStructureGens(cIniFile & a_IniFile)
{
m_StructureGens.push_back(new cStructGenRavines(m_Seed, 128));
}
+ /*
+ // TODO: Not implemented yet; need a name
+ else if (NoCaseCompare(*itr, "caves") == 0)
+ {
+ m_StructureGens.push_back(new cStructGenWormNestCaves(m_Seed));
+ }
+ */
else
{
LOGWARNING("Unknown structure generator: \"%s\". Ignoring.", itr->c_str());