mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Fix infinite viewing_range (#13225)
Use a simplified version of the old loops culler for infinite viewing range.
This commit is contained in:
@@ -124,6 +124,7 @@ void MapSector::deleteBlock(MapBlock *block)
|
||||
|
||||
void MapSector::getBlocks(MapBlockVect &dest)
|
||||
{
|
||||
dest.reserve(dest.size() + m_blocks.size());
|
||||
for (auto &block : m_blocks) {
|
||||
dest.push_back(block.second);
|
||||
}
|
||||
|
Reference in New Issue
Block a user