From a7c87e92ce35092f3abd1ea59ba15ea7cb369343 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 2 Jun 2012 20:44:15 +0000 Subject: Added the Biomal composition generator. git-svn-id: http://mc-server.googlecode.com/svn/trunk@541 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/StructGen.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/StructGen.cpp') diff --git a/source/StructGen.cpp b/source/StructGen.cpp index a15b0bcb9..5f1d9da74 100644 --- a/source/StructGen.cpp +++ b/source/StructGen.cpp @@ -82,6 +82,9 @@ void cStructGenTrees::GenStructures( cChunkDef::BlockNibbles * BlM; cChunkDef::HeightMap * Hei; + cChunkDef::BiomeMap Biomes; + m_BiomeGen->GenBiomes(BaseX, BaseZ, Biomes); + if ((x != 1) || (z != 1)) { BlT = &WorkerBlockTypes; @@ -89,7 +92,7 @@ void cStructGenTrees::GenStructures( Hei = &WorkerHeight; m_HeightGen->GenHeightMap (BaseX, BaseZ, *Hei); - m_CompositionGen->ComposeTerrain(BaseX, BaseZ, *BlT, *BlM, *Hei, Entities, BlockEntities); + m_CompositionGen->ComposeTerrain(BaseX, BaseZ, *BlT, *BlM, *Hei, Biomes, Entities, BlockEntities); // TODO: Free the entity lists } else @@ -99,8 +102,6 @@ void cStructGenTrees::GenStructures( Hei = &a_HeightMap; } - cChunkDef::BiomeMap Biomes; - m_BiomeGen->GenBiomes(BaseX, BaseZ, Biomes); int NumTrees = GetNumTrees(BaseX, BaseZ, Biomes); for (int i = 0; i < NumTrees; i++) -- cgit v1.2.3