diff options
author | madmaxoft <github@xoft.cz> | 2014-07-27 00:03:26 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-27 00:03:26 +0200 |
commit | 77f4297c6ee4daca51220f60b626658a22a22ea2 (patch) | |
tree | f239890b7488ed00645bea84932dbde5c0c1d9f1 /src/Generating/ComposableGenerator.cpp | |
parent | Merge pull request #1232 from mc-server/splash-entity (diff) | |
download | cuberite-77f4297c6ee4daca51220f60b626658a22a22ea2.tar cuberite-77f4297c6ee4daca51220f60b626658a22a22ea2.tar.gz cuberite-77f4297c6ee4daca51220f60b626658a22a22ea2.tar.bz2 cuberite-77f4297c6ee4daca51220f60b626658a22a22ea2.tar.lz cuberite-77f4297c6ee4daca51220f60b626658a22a22ea2.tar.xz cuberite-77f4297c6ee4daca51220f60b626658a22a22ea2.tar.zst cuberite-77f4297c6ee4daca51220f60b626658a22a22ea2.zip |
Diffstat (limited to 'src/Generating/ComposableGenerator.cpp')
-rw-r--r-- | src/Generating/ComposableGenerator.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp index ab6accee7..757f6ddb7 100644 --- a/src/Generating/ComposableGenerator.cpp +++ b/src/Generating/ComposableGenerator.cpp @@ -26,6 +26,7 @@ #include "POCPieceGenerator.h" #include "RainbowRoadsGen.h" #include "Ravines.h" +#include "RoughRavines.h" #include "TestRailsGen.h" #include "UnderwaterBaseGen.h" #include "VillageGen.h" @@ -397,16 +398,23 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile) } else if (NoCaseCompare(*itr, "RainbowRoads") == 0) { - int GridSize = a_IniFile.GetValueSetI("Generator", "RainbowRoadsGridSize", 512); + int GridSize = a_IniFile.GetValueSetI("Generator", "RainbowRoadsGridSize", 512); int MaxOffset = a_IniFile.GetValueSetI("Generator", "RainbowRoadsMaxOffset", 128); - int MaxDepth = a_IniFile.GetValueSetI("Generator", "RainbowRoadsMaxDepth", 30); - int MaxSize = a_IniFile.GetValueSetI("Generator", "RainbowRoadsMaxSize", 260); + int MaxDepth = a_IniFile.GetValueSetI("Generator", "RainbowRoadsMaxDepth", 30); + int MaxSize = a_IniFile.GetValueSetI("Generator", "RainbowRoadsMaxSize", 260); m_FinishGens.push_back(new cRainbowRoadsGen(Seed, GridSize, MaxOffset, MaxDepth, MaxSize)); } else if (NoCaseCompare(*itr, "Ravines") == 0) { m_FinishGens.push_back(new cStructGenRavines(Seed, 128)); } + else if (NoCaseCompare(*itr, "RoughRavines") == 0) + { + int GridSize = a_IniFile.GetValueSetI("Generator", "RoughRavinesGridSize", 256); + int MaxOffset = a_IniFile.GetValueSetI("Generator", "RoughRavinesMaxOffset", 128); + int MaxSize = a_IniFile.GetValueSetI("Generator", "RoughRavinesMaxSize", 64); + m_FinishGens.push_back(new cRoughRavines(Seed, MaxSize, GridSize, MaxOffset)); + } else if (NoCaseCompare(*itr, "Snow") == 0) { m_FinishGens.push_back(new cFinishGenSnow); |