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
This commit is contained in:
parent
ba2f0c6229
commit
925f45a4fa
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user