summaryrefslogtreecommitdiffstats
path: root/source/StructGen.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-02 22:44:15 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-02 22:44:15 +0200
commita7c87e92ce35092f3abd1ea59ba15ea7cb369343 (patch)
treef694bc5f18b2d04f40cf3902c96a5c1862216760 /source/StructGen.cpp
parentClientHandle dumps the contents of all packets in the queue if the packet queue gets overloaded to the point of client-kicking. Use this to debug FS #197. (diff)
downloadcuberite-a7c87e92ce35092f3abd1ea59ba15ea7cb369343.tar
cuberite-a7c87e92ce35092f3abd1ea59ba15ea7cb369343.tar.gz
cuberite-a7c87e92ce35092f3abd1ea59ba15ea7cb369343.tar.bz2
cuberite-a7c87e92ce35092f3abd1ea59ba15ea7cb369343.tar.lz
cuberite-a7c87e92ce35092f3abd1ea59ba15ea7cb369343.tar.xz
cuberite-a7c87e92ce35092f3abd1ea59ba15ea7cb369343.tar.zst
cuberite-a7c87e92ce35092f3abd1ea59ba15ea7cb369343.zip
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++)