From d627e3a2e507b6ed16719a2657b52e883a2eccf1 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 20 Mar 2013 11:00:55 +0000 Subject: Alpha-sorted the generators in ComposableGenerator git-svn-id: http://mc-server.googlecode.com/svn/trunk@1291 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Generating/ComposableGenerator.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'source/Generating') 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 { -- cgit v1.2.3