From fb58acf27c5d30642c85dfbaf9f10e90f8b23e71 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 27 Apr 2013 13:38:40 +0000 Subject: New terrain generator - Noise3D. A testbed for a generator based on 3D noise. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1414 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Generating/ChunkGenerator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/Generating/ChunkGenerator.cpp') diff --git a/source/Generating/ChunkGenerator.cpp b/source/Generating/ChunkGenerator.cpp index 7da7af69d..a4717380d 100644 --- a/source/Generating/ChunkGenerator.cpp +++ b/source/Generating/ChunkGenerator.cpp @@ -8,6 +8,7 @@ #include "../PluginManager.h" #include "ChunkDesc.h" #include "ComposableGenerator.h" +#include "Noise3DGenerator.h" @@ -53,9 +54,9 @@ bool cChunkGenerator::Start(cWorld * a_World, cIniFile & a_IniFile) m_Seed = a_IniFile.GetValueSetI("Seed", "Seed", rnd.randInt()); AString GeneratorName = a_IniFile.GetValueSet("Generator", "Generator", "Composable"); - if (NoCaseCompare(GeneratorName, "RoughHills") == 0) + if (NoCaseCompare(GeneratorName, "Noise3D") == 0) { - // TODO + m_Generator = new cNoise3DGenerator(*this); } else { -- cgit v1.2.3