Fixed generator adding values to ini file.
This commit is contained in:
parent
6943a4df74
commit
712e6e0bb2
@ -90,7 +90,8 @@ cTerrainCompositionGen * cTerrainCompositionGen::CreateCompositionGen(cIniFile &
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOGWARN("Unknown CompositionGen \"%s\", using \"biomal\" instead.", CompoGenName.c_str());
|
LOGWARN("Unknown CompositionGen \"%s\", using \"Biomal\" instead.", CompoGenName.c_str());
|
||||||
|
a_IniFile.DeleteValue("Generator", "CompositionGen");
|
||||||
a_IniFile.SetValue("Generator", "CompositionGen", "Biomal");
|
a_IniFile.SetValue("Generator", "CompositionGen", "Biomal");
|
||||||
return CreateCompositionGen(a_IniFile, a_BiomeGen, a_HeightGen, a_Seed);
|
return CreateCompositionGen(a_IniFile, a_BiomeGen, a_HeightGen, a_Seed);
|
||||||
}
|
}
|
||||||
|
@ -72,6 +72,7 @@ cTerrainHeightGen * cTerrainHeightGen::CreateHeightGen(cIniFile &a_IniFile, cBio
|
|||||||
{
|
{
|
||||||
// No match found, force-set the default and retry
|
// No match found, force-set the default and retry
|
||||||
LOGWARN("Unknown HeightGen \"%s\", using \"Biomal\" instead.", HeightGenName.c_str());
|
LOGWARN("Unknown HeightGen \"%s\", using \"Biomal\" instead.", HeightGenName.c_str());
|
||||||
|
a_IniFile.DeleteValue("Generator", "HeightGen");
|
||||||
a_IniFile.SetValue("Generator", "HeightGen", "Biomal");
|
a_IniFile.SetValue("Generator", "HeightGen", "Biomal");
|
||||||
return CreateHeightGen(a_IniFile, a_BiomeGen, a_Seed, a_CacheOffByDefault);
|
return CreateHeightGen(a_IniFile, a_BiomeGen, a_Seed, a_CacheOffByDefault);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user