diff options
author | madmaxoft <github@xoft.cz> | 2014-03-30 00:12:19 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-03-30 00:12:19 +0100 |
commit | 597bdd9f8010c455c1c4ce83dc2ed5e227666a1c (patch) | |
tree | 4d89a92104fa3f10ed553de77760eb248724d2ae /src/Generating/NetherFortGen.cpp | |
parent | Merge branch 'master' into NetherFortGen (diff) | |
download | cuberite-597bdd9f8010c455c1c4ce83dc2ed5e227666a1c.tar cuberite-597bdd9f8010c455c1c4ce83dc2ed5e227666a1c.tar.gz cuberite-597bdd9f8010c455c1c4ce83dc2ed5e227666a1c.tar.bz2 cuberite-597bdd9f8010c455c1c4ce83dc2ed5e227666a1c.tar.lz cuberite-597bdd9f8010c455c1c4ce83dc2ed5e227666a1c.tar.xz cuberite-597bdd9f8010c455c1c4ce83dc2ed5e227666a1c.tar.zst cuberite-597bdd9f8010c455c1c4ce83dc2ed5e227666a1c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/NetherFortGen.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Generating/NetherFortGen.cpp b/src/Generating/NetherFortGen.cpp index d111c7cee..09c992e22 100644 --- a/src/Generating/NetherFortGen.cpp +++ b/src/Generating/NetherFortGen.cpp @@ -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); + } } |