diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-27 16:17:47 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-27 16:17:47 +0200 |
commit | 79fddd3be017b16f2d662441a92b26c2c6dc5b11 (patch) | |
tree | 581c9d227c71ab1ef4d6a68a81153d6770374b4a /source/cChunkGenerator.cpp | |
parent | DebugBiomes composition generator now uses only blocks suitable for terrain (from an internal list) (diff) | |
download | cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar.gz cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar.bz2 cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar.lz cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar.xz cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar.zst cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.zip |
Diffstat (limited to 'source/cChunkGenerator.cpp')
-rw-r--r-- | source/cChunkGenerator.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/cChunkGenerator.cpp b/source/cChunkGenerator.cpp index 72e293b3f..e5514ca1f 100644 --- a/source/cChunkGenerator.cpp +++ b/source/cChunkGenerator.cpp @@ -127,6 +127,12 @@ void cChunkGenerator::InitBiomeGen(cIniFile & a_IniFile) AString Biomes = a_IniFile.GetValue("Generator", "CheckerBoardBiomes", "");
m_BiomeGen = new cBioGenCheckerboard(BiomeSize, Biomes);
}
+ else if (NoCaseCompare(BiomeGenName, "voronoi") == 0)
+ {
+ int CellSize = a_IniFile.GetValueI("Generator", "VoronoiCellSize", 64);
+ AString Biomes = a_IniFile.GetValue("Generator", "VoronoiBiomes", "");
+ m_BiomeGen = new cBioGenVoronoi(m_Seed, CellSize, Biomes);
+ }
else
{
if (NoCaseCompare(BiomeGenName, "distortedvoronoi") != 0)
|