diff options
author | madmaxoft <github@xoft.cz> | 2014-06-15 23:30:43 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-06-15 23:34:44 +0200 |
commit | d9719e696ce11df0557acbbc56545cb0d0f95075 (patch) | |
tree | 2de0752e3001ad4f17f6b2626320e9fa04ae6b0a /src/Generating/NetherFortGen.cpp | |
parent | Merge pull request #1090 from mc-server/saveoncrash (diff) | |
download | cuberite-d9719e696ce11df0557acbbc56545cb0d0f95075.tar cuberite-d9719e696ce11df0557acbbc56545cb0d0f95075.tar.gz cuberite-d9719e696ce11df0557acbbc56545cb0d0f95075.tar.bz2 cuberite-d9719e696ce11df0557acbbc56545cb0d0f95075.tar.lz cuberite-d9719e696ce11df0557acbbc56545cb0d0f95075.tar.xz cuberite-d9719e696ce11df0557acbbc56545cb0d0f95075.tar.zst cuberite-d9719e696ce11df0557acbbc56545cb0d0f95075.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/NetherFortGen.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/Generating/NetherFortGen.cpp b/src/Generating/NetherFortGen.cpp index 3867ec80c..23fa56048 100644 --- a/src/Generating/NetherFortGen.cpp +++ b/src/Generating/NetherFortGen.cpp @@ -26,8 +26,8 @@ public: cPlacedPieces m_Pieces; - cNetherFort(cNetherFortGen & a_ParentGen, int a_OriginX, int a_OriginZ, int a_GridSize, int a_MaxDepth, int a_Seed) : - super(a_OriginX, a_OriginZ), + cNetherFort(cNetherFortGen & a_ParentGen, int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ, int a_GridSize, int a_MaxDepth, int a_Seed) : + super(a_GridX, a_GridZ, a_OriginX, a_OriginZ), m_ParentGen(a_ParentGen), m_GridSize(a_GridSize), m_Seed(a_Seed) @@ -108,8 +108,8 @@ cPrefabPiecePool cNetherFortGen::m_PiecePool(g_NetherFortPrefabs, g_NetherFortPr -cNetherFortGen::cNetherFortGen(int a_Seed, int a_GridSize, int a_MaxDepth) : - super(a_Seed, a_GridSize, a_GridSize, a_MaxDepth * 10, a_MaxDepth * 10, 200), +cNetherFortGen::cNetherFortGen(int a_Seed, int a_GridSize, int a_MaxOffset, int a_MaxDepth) : + super(a_Seed, a_GridSize, a_GridSize, a_MaxOffset, a_MaxOffset, a_MaxDepth * 10, a_MaxDepth * 10, 200), m_MaxDepth(a_MaxDepth) { /* @@ -124,8 +124,11 @@ cNetherFortGen::cNetherFortGen(int a_Seed, int a_GridSize, int a_MaxDepth) : -cGridStructGen::cStructurePtr cNetherFortGen::CreateStructure(int a_OriginX, int a_OriginZ) +cGridStructGen::cStructurePtr cNetherFortGen::CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) { - return cStructurePtr(new cNetherFort(*this, a_OriginX, a_OriginZ, m_GridSizeX, m_MaxDepth, m_Seed)); + return cStructurePtr(new cNetherFort(*this, a_GridX, a_GridZ, a_OriginX, a_OriginZ, m_GridSizeX, m_MaxDepth, m_Seed)); } + + + |