summaryrefslogtreecommitdiffstats
path: root/source/StructGen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/StructGen.cpp')
-rw-r--r--source/StructGen.cpp7
1 files changed, 4 insertions, 3 deletions
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++)