summaryrefslogtreecommitdiffstats
path: root/src/Generating/ShapeGen.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-11-23 18:16:20 +0100
committerMattes D <github@xoft.cz>2014-11-23 18:16:20 +0100
commit478bbad5ede86ec9f89444bdd60471ab314bf65a (patch)
treefe8f40375167fb2cb5c394d20f1bc1ec5da58fca /src/Generating/ShapeGen.cpp
parentNoise3D generator: Enlarged averaging to avoid steep beach slopes. (diff)
downloadcuberite-478bbad5ede86ec9f89444bdd60471ab314bf65a.tar
cuberite-478bbad5ede86ec9f89444bdd60471ab314bf65a.tar.gz
cuberite-478bbad5ede86ec9f89444bdd60471ab314bf65a.tar.bz2
cuberite-478bbad5ede86ec9f89444bdd60471ab314bf65a.tar.lz
cuberite-478bbad5ede86ec9f89444bdd60471ab314bf65a.tar.xz
cuberite-478bbad5ede86ec9f89444bdd60471ab314bf65a.tar.zst
cuberite-478bbad5ede86ec9f89444bdd60471ab314bf65a.zip
Diffstat (limited to 'src/Generating/ShapeGen.cpp')
-rw-r--r--src/Generating/ShapeGen.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Generating/ShapeGen.cpp b/src/Generating/ShapeGen.cpp
index 750b34e10..45a9c3b93 100644
--- a/src/Generating/ShapeGen.cpp
+++ b/src/Generating/ShapeGen.cpp
@@ -9,6 +9,7 @@
#include "DistortedHeightmap.h"
#include "EndGen.h"
#include "Noise3DGenerator.h"
+#include "TwoHeights.h"
@@ -121,6 +122,10 @@ cTerrainShapeGenPtr cTerrainShapeGen::CreateShapeGen(cIniFile & a_IniFile, cBiom
{
res = std::make_shared<cNoise3DComposable>(a_Seed);
}
+ else if (NoCaseCompare(shapeGenName, "TwoHeights") == 0)
+ {
+ res = CreateShapeGenTwoHeights(a_Seed, a_BiomeGen);
+ }
else
{
// No match found, force-set the default and retry