1
0

Biome generators: biome lists can contain spaces.

This commit is contained in:
madmaxoft 2014-05-27 21:18:15 +02:00
parent 24137e282b
commit 6c25c356c7

View File

@ -212,7 +212,7 @@ void cBioGenCache::InitializeBiomeGen(cIniFile & a_IniFile)
void cBiomeGenList::InitializeBiomes(const AString & a_Biomes) void cBiomeGenList::InitializeBiomes(const AString & a_Biomes)
{ {
AStringVector Split = StringSplit(a_Biomes, ","); AStringVector Split = StringSplitAndTrim(a_Biomes, ",");
// Convert each string in the list into biome: // Convert each string in the list into biome:
for (AStringVector::const_iterator itr = Split.begin(); itr != Split.end(); ++itr) for (AStringVector::const_iterator itr = Split.begin(); itr != Split.end(); ++itr)