Prefabs can specify that they don't want flooring.
Previously the flag was ignored.
This commit is contained in:
parent
b69a0c914e
commit
e4af9a21af
@ -174,6 +174,8 @@ void cPrefab::Draw(cChunkDesc & a_Dest, const cPlacedPiece * a_Placement) const
|
|||||||
a_Dest.WriteBlockArea(Image, Placement.x, Placement.y, Placement.z, m_MergeStrategy);
|
a_Dest.WriteBlockArea(Image, Placement.x, Placement.y, Placement.z, m_MergeStrategy);
|
||||||
|
|
||||||
// If requested, draw the floor (from the bottom of the prefab down to the nearest non-air)
|
// If requested, draw the floor (from the bottom of the prefab down to the nearest non-air)
|
||||||
|
if (m_ShouldExtendFloor)
|
||||||
|
{
|
||||||
int MaxX = Image.GetSizeX();
|
int MaxX = Image.GetSizeX();
|
||||||
int MaxZ = Image.GetSizeZ();
|
int MaxZ = Image.GetSizeZ();
|
||||||
for (int z = 0; z < MaxZ; z++)
|
for (int z = 0; z < MaxZ; z++)
|
||||||
@ -213,6 +215,7 @@ void cPrefab::Draw(cChunkDesc & a_Dest, const cPlacedPiece * a_Placement) const
|
|||||||
} // for x
|
} // for x
|
||||||
} // for z
|
} // for z
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user