diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-11 16:35:49 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-11 16:35:49 +0100 |
commit | e8e678e1b73adb3cc5987e6808cbbd633b6805e6 (patch) | |
tree | 0a2e762b18cf67fed87cfd90556afb3f9fce2045 /source/Generating/ChunkGenerator.cpp | |
parent | Removed an unused obsolete function chain - cWorld::GetChunkBlockData() (diff) | |
download | cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar.gz cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar.bz2 cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar.lz cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar.xz cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar.zst cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.zip |
Diffstat (limited to 'source/Generating/ChunkGenerator.cpp')
-rw-r--r-- | source/Generating/ChunkGenerator.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/source/Generating/ChunkGenerator.cpp b/source/Generating/ChunkGenerator.cpp index 27a802e4d..c68ceb7f9 100644 --- a/source/Generating/ChunkGenerator.cpp +++ b/source/Generating/ChunkGenerator.cpp @@ -340,18 +340,20 @@ void cChunkGenerator::InitStructureGens(cIniFile & a_IniFile) void cChunkGenerator::InitFinishGens(cIniFile & a_IniFile) { - AString Structures = a_IniFile.GetValueSet("Generator", "Finishers", "SprinkleFoliage,Ice,Snow,Lilypads,BottomLava"); + AString Structures = a_IniFile.GetValueSet("Generator", "Finishers", "SprinkleFoliage,Ice,Snow,Lilypads,BottomLava,DeadBushes,PreSimulator"); AStringVector Str = StringSplit(Structures, ","); for (AStringVector::const_iterator itr = Str.begin(); itr != Str.end(); ++itr) { - if (NoCaseCompare(*itr, "SprinkleFoliage") == 0) + // Finishers, alpha-sorted: + if (NoCaseCompare(*itr, "BottomLava") == 0) { - m_FinishGens.push_back(new cFinishGenSprinkleFoliage(m_Seed)); + int BottomLavaLevel = a_IniFile.GetValueSetI("Generator", "BottomLavaLevel", 10); + m_FinishGens.push_back(new cFinishGenBottomLava(BottomLavaLevel)); } - else if (NoCaseCompare(*itr, "Snow") == 0) + else if (NoCaseCompare(*itr, "DeadBushes") == 0) { - m_FinishGens.push_back(new cFinishGenSnow); + m_FinishGens.push_back(new cFinishGenDeadBushes(m_Seed)); } else if (NoCaseCompare(*itr, "Ice") == 0) { @@ -361,15 +363,18 @@ void cChunkGenerator::InitFinishGens(cIniFile & a_IniFile) { m_FinishGens.push_back(new cFinishGenLilypads(m_Seed)); } - else if (NoCaseCompare(*itr, "BottomLava") == 0) - { - int BottomLavaLevel = a_IniFile.GetValueSetI("Generator", "BottomLavaLevel", 10); - m_FinishGens.push_back(new cFinishGenBottomLava(BottomLavaLevel)); - } else if (NoCaseCompare(*itr, "PreSimulator") == 0) { m_FinishGens.push_back(new cFinishGenPreSimulator); } + else if (NoCaseCompare(*itr, "Snow") == 0) + { + m_FinishGens.push_back(new cFinishGenSnow); + } + else if (NoCaseCompare(*itr, "SprinkleFoliage") == 0) + { + m_FinishGens.push_back(new cFinishGenSprinkleFoliage(m_Seed)); + } } // for itr - Str[] } |