Added the Biomal composition generator.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@541 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user