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:
parent
47a427d3dc
commit
597bdd9f80
@ -41,8 +41,11 @@ public:
|
|||||||
int BlockY = 64;
|
int BlockY = 64;
|
||||||
|
|
||||||
// Generate pieces:
|
// Generate pieces:
|
||||||
cBFSPieceGenerator pg(m_ParentGen, a_Seed);
|
for (int i = 0; m_Pieces.size() < (size_t)(a_MaxDepth * a_MaxDepth / 16 + a_MaxDepth); i++)
|
||||||
pg.PlacePieces(a_BlockX, BlockY, a_BlockZ, a_MaxDepth, m_Pieces);
|
{
|
||||||
|
cBFSPieceGenerator pg(m_ParentGen, a_Seed + 1);
|
||||||
|
pg.PlacePieces(a_BlockX, BlockY, a_BlockZ, a_MaxDepth, m_Pieces);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user