diff options
author | madmaxoft <github@xoft.cz> | 2014-05-25 23:50:16 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-25 23:50:16 +0200 |
commit | 1a742a2b52d32bd22cd57b4d462bee312717e010 (patch) | |
tree | 65657eb46ac05e24b101a14f45a9d124212322cd /src/Generating/PieceGenerator.cpp | |
parent | Added Japanese village prefabs. (diff) | |
download | cuberite-1a742a2b52d32bd22cd57b4d462bee312717e010.tar cuberite-1a742a2b52d32bd22cd57b4d462bee312717e010.tar.gz cuberite-1a742a2b52d32bd22cd57b4d462bee312717e010.tar.bz2 cuberite-1a742a2b52d32bd22cd57b4d462bee312717e010.tar.lz cuberite-1a742a2b52d32bd22cd57b4d462bee312717e010.tar.xz cuberite-1a742a2b52d32bd22cd57b4d462bee312717e010.tar.zst cuberite-1a742a2b52d32bd22cd57b4d462bee312717e010.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/PieceGenerator.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Generating/PieceGenerator.cpp b/src/Generating/PieceGenerator.cpp index 7d478f1a1..1880a20d5 100644 --- a/src/Generating/PieceGenerator.cpp +++ b/src/Generating/PieceGenerator.cpp @@ -286,7 +286,8 @@ cPlacedPiece::cPlacedPiece(const cPlacedPiece * a_Parent, const cPiece & a_Piece m_Parent(a_Parent), m_Piece(&a_Piece), m_Coords(a_Coords), - m_NumCCWRotations(a_NumCCWRotations) + m_NumCCWRotations(a_NumCCWRotations), + m_HasBeenMovedToGround(false) { m_Depth = (m_Parent == NULL) ? 0 : (m_Parent->GetDepth() + 1); m_HitBox = a_Piece.RotateMoveHitBox(a_NumCCWRotations, a_Coords.x, a_Coords.y, a_Coords.z); @@ -317,6 +318,16 @@ cPiece::cConnector cPlacedPiece::GetRotatedConnector(const cPiece::cConnector & +void cPlacedPiece::MoveToGroundBy(int a_OffsetY) +{ + m_Coords.y += a_OffsetY; + m_HasBeenMovedToGround = true; +} + + + + + /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // cPieceGenerator: |