summaryrefslogtreecommitdiffstats
path: root/src/Generating/Prefab.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-25 23:50:16 +0200
committermadmaxoft <github@xoft.cz>2014-05-25 23:50:16 +0200
commit1a742a2b52d32bd22cd57b4d462bee312717e010 (patch)
tree65657eb46ac05e24b101a14f45a9d124212322cd /src/Generating/Prefab.cpp
parentAdded Japanese village prefabs. (diff)
downloadcuberite-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/Prefab.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Generating/Prefab.cpp b/src/Generating/Prefab.cpp
index 05979507a..e41907325 100644
--- a/src/Generating/Prefab.cpp
+++ b/src/Generating/Prefab.cpp
@@ -127,7 +127,8 @@ cPrefab::cPrefab(const cPrefab::sDef & a_Def) :
m_MergeStrategy(a_Def.m_MergeStrategy),
m_ShouldExtendFloor(a_Def.m_ShouldExtendFloor),
m_DefaultWeight(a_Def.m_DefaultWeight),
- m_AddWeightIfSame(a_Def.m_AddWeightIfSame)
+ m_AddWeightIfSame(a_Def.m_AddWeightIfSame),
+ m_MoveToGround(a_Def.m_MoveToGround)
{
m_BlockArea[0].Create(m_Size);
CharMap cm;
@@ -149,7 +150,8 @@ cPrefab::cPrefab(const cBlockArea & a_Image, int a_AllowedRotations) :
m_MergeStrategy(cBlockArea::msOverwrite),
m_ShouldExtendFloor(false),
m_DefaultWeight(1),
- m_AddWeightIfSame(0)
+ m_AddWeightIfSame(0),
+ m_MoveToGround(false)
{
m_HitBox.p1.Set(0, 0, 0);
m_HitBox.p2.Set(m_Size.x - 1, m_Size.y - 1, m_Size.z - 1);