From b9f441294d0c45bf3e81a0573ad6fad68b1ba600 Mon Sep 17 00:00:00 2001 From: mBornand <63592189+mBornand@users.noreply.github.com> Date: Wed, 6 May 2020 17:31:52 +0200 Subject: Add tree generation for ExtemeHills and other biomes (#4713) --- src/Generating/StructGen.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/Generating/StructGen.h') diff --git a/src/Generating/StructGen.h b/src/Generating/StructGen.h index 15671453a..bbbdf9651 100644 --- a/src/Generating/StructGen.h +++ b/src/Generating/StructGen.h @@ -18,8 +18,6 @@ - - class cStructGenTrees : public cFinishGen { @@ -46,6 +44,7 @@ protected: */ void GenerateSingleTree( int a_ChunkX, int a_ChunkZ, int a_Seq, + Vector3i a_Pos, cChunkDesc & a_ChunkDesc, sSetBlockVector & a_OutsideLogs, sSetBlockVector & a_OutsideOther @@ -59,7 +58,10 @@ protected: sSetBlockVector & a_Overflow ); - int GetNumTrees( + /** Get the the number of trees to generate in a_Chunk + If the value is between 0 and 1, it should be interpreted as the probability that a tree should be generated. + */ + double GetNumTrees( int a_ChunkX, int a_ChunkZ, const cChunkDef::BiomeMap & a_Biomes ); -- cgit v1.2.3