From d43026ddc28829310ba6baf607adce1f54b4f323 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 19 Mar 2013 10:14:57 +0000 Subject: Lakes: added a limiter, better height distribution git-svn-id: http://mc-server.googlecode.com/svn/trunk@1287 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Generating/StructGen.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/Generating/StructGen.h') diff --git a/source/Generating/StructGen.h b/source/Generating/StructGen.h index ffb62e327..44f2fc213 100644 --- a/source/Generating/StructGen.h +++ b/source/Generating/StructGen.h @@ -96,11 +96,12 @@ class cStructGenLakes : public cStructureGen { public: - cStructGenLakes(int a_Seed, BLOCKTYPE a_Fluid, cTerrainHeightGen & a_HeiGen) : + cStructGenLakes(int a_Seed, BLOCKTYPE a_Fluid, cTerrainHeightGen & a_HeiGen, int a_Probability) : m_Noise(a_Seed), m_Seed(a_Seed), m_Fluid(a_Fluid), - m_HeiGen(a_HeiGen) + m_HeiGen(a_HeiGen), + m_Probability(a_Probability) { } @@ -109,6 +110,7 @@ protected: int m_Seed; BLOCKTYPE m_Fluid; cTerrainHeightGen & m_HeiGen; + int m_Probability; ///< Chance, 0 .. 100, of a chunk having the lake // cStructureGen override: virtual void GenStructures(cChunkDesc & a_ChunkDesc) override; -- cgit v1.2.3