summaryrefslogtreecommitdiffstats
path: root/src/Generating/NetherFortGen.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-28 17:09:47 +0100
committermadmaxoft <github@xoft.cz>2014-03-28 17:09:47 +0100
commit3c84a995a90122279cdb2f8cd60491e4d33c297f (patch)
treef1fe54ad66311ad63e72953fa5ebea9eba19eae3 /src/Generating/NetherFortGen.cpp
parentSponged the netherfort balcony prefab. (diff)
downloadcuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar
cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar.gz
cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar.bz2
cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar.lz
cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar.xz
cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar.zst
cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.zip
Diffstat (limited to 'src/Generating/NetherFortGen.cpp')
-rw-r--r--src/Generating/NetherFortGen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Generating/NetherFortGen.cpp b/src/Generating/NetherFortGen.cpp
index 25658da46..d111c7cee 100644
--- a/src/Generating/NetherFortGen.cpp
+++ b/src/Generating/NetherFortGen.cpp
@@ -29,6 +29,7 @@ public:
int m_Seed;
cPlacedPieces m_Pieces;
+
cNetherFort(cNetherFortGen & a_ParentGen, int a_BlockX, int a_BlockZ, int a_GridSize, int a_MaxDepth, int a_Seed) :
m_ParentGen(a_ParentGen),
m_BlockX(a_BlockX),
@@ -43,6 +44,12 @@ public:
cBFSPieceGenerator pg(m_ParentGen, a_Seed);
pg.PlacePieces(a_BlockX, BlockY, a_BlockZ, a_MaxDepth, m_Pieces);
}
+
+
+ ~cNetherFort()
+ {
+ cPieceGenerator::FreePieces(m_Pieces);
+ }
/** Carves the system into the chunk data */