summaryrefslogtreecommitdiffstats
path: root/src/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-22 21:47:56 +0200
committermadmaxoft <github@xoft.cz>2014-05-22 21:47:56 +0200
commit6aa7df367f8db7506a8a5ab853c26e3c9fd60253 (patch)
treed869d17b349aa2fffc676224f5aee2f9c17b59f1 /src/Generating/ComposableGenerator.cpp
parentUpdated plains village prefabs. (diff)
downloadcuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar
cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar.gz
cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar.bz2
cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar.lz
cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar.xz
cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar.zst
cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.zip
Diffstat (limited to 'src/Generating/ComposableGenerator.cpp')
-rw-r--r--src/Generating/ComposableGenerator.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp
index f264599c9..4dd626ed4 100644
--- a/src/Generating/ComposableGenerator.cpp
+++ b/src/Generating/ComposableGenerator.cpp
@@ -408,10 +408,12 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
}
else if (NoCaseCompare(*itr, "Villages") == 0)
{
- int GridSize = a_IniFile.GetValueSetI("Generator", "VillageGridSize", 384);
- int MaxDepth = a_IniFile.GetValueSetI("Generator", "VillageMaxDepth", 3);
- int MaxSize = a_IniFile.GetValueSetI("Generator", "VillageMaxSize", 128);
- m_FinishGens.push_back(new cVillageGen(Seed, GridSize, MaxDepth, MaxSize, *m_BiomeGen, *m_HeightGen));
+ int GridSize = a_IniFile.GetValueSetI("Generator", "VillageGridSize", 384);
+ int MaxDepth = a_IniFile.GetValueSetI("Generator", "VillageMaxDepth", 2);
+ int MaxSize = a_IniFile.GetValueSetI("Generator", "VillageMaxSize", 128);
+ int MinDensity = a_IniFile.GetValueSetI("Generator", "VillageMinDensity", 50);
+ int MaxDensity = a_IniFile.GetValueSetI("Generator", "VillageMaxDensity", 80);
+ m_FinishGens.push_back(new cVillageGen(Seed, GridSize, MaxDepth, MaxSize, MinDensity, MaxDensity, *m_BiomeGen, *m_HeightGen));
}
else if (NoCaseCompare(*itr, "WaterLakes") == 0)
{