From ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 27 May 2012 10:51:04 +0000 Subject: Added the CheckerBoardBiomes parameter for setting biomes that CheckerBoard generates (#179). Added string-to-biome conversion (#183). Added OreNests to default Structures configuration. git-svn-id: http://mc-server.googlecode.com/svn/trunk@506 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunkGenerator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/cChunkGenerator.cpp') diff --git a/source/cChunkGenerator.cpp b/source/cChunkGenerator.cpp index 321246298..e8565f6ac 100644 --- a/source/cChunkGenerator.cpp +++ b/source/cChunkGenerator.cpp @@ -119,7 +119,8 @@ void cChunkGenerator::InitBiomeGen(cIniFile & a_IniFile) else if (NoCaseCompare(BiomeGenName, "checkerboard") == 0) { int BiomeSize = a_IniFile.GetValueI("Generator", "CheckerboardBiomeSize", 64); - m_BiomeGen = new cBioGenCheckerboard(BiomeSize); + AString Biomes = a_IniFile.GetValue("Generator", "CheckerBoardBiomes", ""); + m_BiomeGen = new cBioGenCheckerboard(BiomeSize, Biomes); } else { @@ -218,7 +219,7 @@ void cChunkGenerator::InitCompositionGen(cIniFile & a_IniFile) void cChunkGenerator::InitStructureGens(cIniFile & a_IniFile) { - AString Structures = a_IniFile.GetValue("Generator", "Structures", "Trees,MarbleCaves"); + AString Structures = a_IniFile.GetValue("Generator", "Structures", "Trees,MarbleCaves,OreNests"); AStringVector Str = StringSplit(Structures, ","); for (AStringVector::const_iterator itr = Str.begin(); itr != Str.end(); ++itr) -- cgit v1.2.3