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);
|
||||
|
||||
// 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 MaxZ = Image.GetSizeZ();
|
||||
for (int z = 0; z < MaxZ; z++)
|
||||
@ -212,6 +214,7 @@ void cPrefab::Draw(cChunkDesc & a_Dest, const cPlacedPiece * a_Placement) const
|
||||
} // for y
|
||||
} // for x
|
||||
} // for z
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user