summaryrefslogtreecommitdiffstats
path: root/source/cChunkGenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/cChunkGenerator.cpp')
-rw-r--r--source/cChunkGenerator.cpp9
1 files 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)
{