summaryrefslogtreecommitdiffstats
path: root/source/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-20 12:00:55 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-20 12:00:55 +0100
commitd627e3a2e507b6ed16719a2657b52e883a2eccf1 (patch)
treec2ab2f3e27e34c41254350c4365c6be160dca791 /source/Generating/ComposableGenerator.cpp
parentBiomeVisualiser: fixed compilation (diff)
downloadcuberite-d627e3a2e507b6ed16719a2657b52e883a2eccf1.tar
cuberite-d627e3a2e507b6ed16719a2657b52e883a2eccf1.tar.gz
cuberite-d627e3a2e507b6ed16719a2657b52e883a2eccf1.tar.bz2
cuberite-d627e3a2e507b6ed16719a2657b52e883a2eccf1.tar.lz
cuberite-d627e3a2e507b6ed16719a2657b52e883a2eccf1.tar.xz
cuberite-d627e3a2e507b6ed16719a2657b52e883a2eccf1.tar.zst
cuberite-d627e3a2e507b6ed16719a2657b52e883a2eccf1.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/ComposableGenerator.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/source/Generating/ComposableGenerator.cpp b/source/Generating/ComposableGenerator.cpp
index 6e72af302..214b587af 100644
--- a/source/Generating/ComposableGenerator.cpp
+++ b/source/Generating/ComposableGenerator.cpp
@@ -308,40 +308,40 @@ void cComposableGenerator::InitStructureGens(cIniFile & a_IniFile)
AStringVector Str = StringSplitAndTrim(Structures, ",");
for (AStringVector::const_iterator itr = Str.begin(); itr != Str.end(); ++itr)
{
- if (NoCaseCompare(*itr, "trees") == 0)
+ if (NoCaseCompare(*itr, "DualRidgeCaves") == 0)
{
- m_StructureGens.push_back(new cStructGenTrees(Seed, m_BiomeGen, m_HeightGen, m_CompositionGen));
+ float Threshold = (float)a_IniFile.GetValueSetF("Generator", "DualRidgeCavesThreshold", 0.3);
+ m_StructureGens.push_back(new cStructGenDualRidgeCaves(Seed, Threshold));
}
- else if (NoCaseCompare(*itr, "marblecaves") == 0)
+ else if (NoCaseCompare(*itr, "LavaLakes") == 0)
{
- m_StructureGens.push_back(new cStructGenMarbleCaves(Seed));
+ int Probability = a_IniFile.GetValueSetI("Generator", "LavaLakesProbability", 10);
+ m_StructureGens.push_back(new cStructGenLakes(Seed * 5 + 16873, E_BLOCK_STATIONARY_LAVA, *m_HeightGen, Probability));
}
- else if (NoCaseCompare(*itr, "dualridgecaves") == 0)
+ else if (NoCaseCompare(*itr, "MarbleCaves") == 0)
{
- float Threshold = (float)a_IniFile.GetValueSetF("Generator", "DualRidgeCavesThreshold", 0.3);
- m_StructureGens.push_back(new cStructGenDualRidgeCaves(Seed, Threshold));
+ m_StructureGens.push_back(new cStructGenMarbleCaves(Seed));
}
- else if (NoCaseCompare(*itr, "orenests") == 0)
+ else if (NoCaseCompare(*itr, "OreNests") == 0)
{
m_StructureGens.push_back(new cStructGenOreNests(Seed));
}
- else if (NoCaseCompare(*itr, "ravines") == 0)
+ else if (NoCaseCompare(*itr, "Ravines") == 0)
{
m_StructureGens.push_back(new cStructGenRavines(Seed, 128));
}
- else if (NoCaseCompare(*itr, "wormnestcaves") == 0)
+ else if (NoCaseCompare(*itr, "Trees") == 0)
{
- m_StructureGens.push_back(new cStructGenWormNestCaves(Seed));
+ m_StructureGens.push_back(new cStructGenTrees(Seed, m_BiomeGen, m_HeightGen, m_CompositionGen));
}
- else if (NoCaseCompare(*itr, "waterlakes") == 0)
+ else if (NoCaseCompare(*itr, "WaterLakes") == 0)
{
int Probability = a_IniFile.GetValueSetI("Generator", "WaterLakesProbability", 25);
m_StructureGens.push_back(new cStructGenLakes(Seed * 3 + 652, E_BLOCK_STATIONARY_WATER, *m_HeightGen, Probability));
}
- else if (NoCaseCompare(*itr, "lavalakes") == 0)
+ else if (NoCaseCompare(*itr, "WormNestCaves") == 0)
{
- int Probability = a_IniFile.GetValueSetI("Generator", "LavaLakesProbability", 10);
- m_StructureGens.push_back(new cStructGenLakes(Seed * 5 + 16873, E_BLOCK_STATIONARY_LAVA, *m_HeightGen, Probability));
+ m_StructureGens.push_back(new cStructGenWormNestCaves(Seed));
}
else
{