mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix most walled-off caves
This commit is contained in:
parent
60e6284f30
commit
5bd50a2d90
3 changed files with 18 additions and 15 deletions
|
@ -244,7 +244,13 @@ void VoxelManipulator::copyTo(MapNode *dst, VoxelArea dst_area,
|
|||
{
|
||||
s32 i_dst = dst_area.index(dst_pos.X, dst_pos.Y+y, dst_pos.Z+z);
|
||||
s32 i_local = m_area.index(from_pos.X, from_pos.Y+y, from_pos.Z+z);
|
||||
memcpy(&dst[i_dst], &m_data[i_local], size.X*sizeof(MapNode));
|
||||
for (s16 x = 0; x < size.X; x++) {
|
||||
if (m_data[i_local].getContent() != CONTENT_IGNORE)
|
||||
dst[i_dst] = m_data[i_local];
|
||||
i_dst++;
|
||||
i_local++;
|
||||
}
|
||||
//memcpy(&dst[i_dst], &m_data[i_local], size.X*sizeof(MapNode));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue