mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix infinite viewing_range (#13225)
Use a simplified version of the old loops culler for infinite viewing range.
This commit is contained in:
parent
b1ed0ef721
commit
3e148e2810
2 changed files with 239 additions and 177 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue