1
0

NetherForts have a minimum number of pieces.

The fort will generate a different image if it has less than the minimum; the max depth affects the minimum number of pieces.
This commit is contained in:
madmaxoft 2014-03-30 00:12:19 +01:00
parent 47a427d3dc
commit 597bdd9f80

View File

@ -41,8 +41,11 @@ public:
int BlockY = 64;
// Generate pieces:
cBFSPieceGenerator pg(m_ParentGen, a_Seed);
pg.PlacePieces(a_BlockX, BlockY, a_BlockZ, a_MaxDepth, m_Pieces);
for (int i = 0; m_Pieces.size() < (size_t)(a_MaxDepth * a_MaxDepth / 16 + a_MaxDepth); i++)
{
cBFSPieceGenerator pg(m_ParentGen, a_Seed + 1);
pg.PlacePieces(a_BlockX, BlockY, a_BlockZ, a_MaxDepth, m_Pieces);
}
}