diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-19 11:14:57 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-19 11:14:57 +0100 |
commit | d43026ddc28829310ba6baf607adce1f54b4f323 (patch) | |
tree | 017248e5f1d0b894ae5a42d6ce7d0c409810d30b /source/Generating/ComposableGenerator.cpp | |
parent | The subgenerators use cChunkDesc instead of raw arrays. cChunkDesc is based on cBlockArea. Initial version of Lakes generator. (diff) | |
download | cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar.gz cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar.bz2 cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar.lz cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar.xz cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar.zst cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.zip |
Diffstat (limited to 'source/Generating/ComposableGenerator.cpp')
-rw-r--r-- | source/Generating/ComposableGenerator.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/Generating/ComposableGenerator.cpp b/source/Generating/ComposableGenerator.cpp index e349d73f7..6e72af302 100644 --- a/source/Generating/ComposableGenerator.cpp +++ b/source/Generating/ComposableGenerator.cpp @@ -335,11 +335,13 @@ void cComposableGenerator::InitStructureGens(cIniFile & a_IniFile) }
else if (NoCaseCompare(*itr, "waterlakes") == 0)
{
- m_StructureGens.push_back(new cStructGenLakes(Seed * 3 + 652, E_BLOCK_STATIONARY_WATER, *m_HeightGen));
+ int Probability = a_IniFile.GetValueSetI("Generator", "WaterLakesProbability", 25);
+ m_StructureGens.push_back(new cStructGenLakes(Seed * 3 + 652, E_BLOCK_STATIONARY_WATER, *m_HeightGen, Probability));
}
else if (NoCaseCompare(*itr, "lavalakes") == 0)
{
- m_StructureGens.push_back(new cStructGenLakes(Seed * 5 + 16873, E_BLOCK_STATIONARY_LAVA, *m_HeightGen));
+ int Probability = a_IniFile.GetValueSetI("Generator", "LavaLakesProbability", 10);
+ m_StructureGens.push_back(new cStructGenLakes(Seed * 5 + 16873, E_BLOCK_STATIONARY_LAVA, *m_HeightGen, Probability));
}
else
{
|