From 925f45a4fa3a3f42071639ebb6da20c6110af712 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 27 May 2012 10:57:36 +0000 Subject: ConstantBiome parsing now uses the string-to-biome conversion (#183) git-svn-id: http://mc-server.googlecode.com/svn/trunk@507 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunkGenerator.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/cChunkGenerator.cpp b/source/cChunkGenerator.cpp index e8565f6ac..72e293b3f 100644 --- a/source/cChunkGenerator.cpp +++ b/source/cChunkGenerator.cpp @@ -113,8 +113,13 @@ void cChunkGenerator::InitBiomeGen(cIniFile & a_IniFile) if (NoCaseCompare(BiomeGenName, "constant") == 0) { - int Biome = a_IniFile.GetValueI("Generator", "ConstantBiome", biPlains); - m_BiomeGen = new cBioGenConstant((EMCSBiome)Biome); + AString Biome = a_IniFile.GetValue("Generator", "ConstantBiome", "Plains"); + EMCSBiome b = StringToBiome(Biome); + if (b == -1) + { + b = biPlains; + } + m_BiomeGen = new cBioGenConstant(b); } else if (NoCaseCompare(BiomeGenName, "checkerboard") == 0) { -- cgit v1.2.3