mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Replace std::list by std::vector into ClientMap::updateDrawList, Map::timerUpdate and ServerMap::save().
This will speedup the loop reading into those functions
This commit is contained in:
@@ -133,7 +133,7 @@ void MapSector::deleteBlock(MapBlock *block)
|
||||
delete block;
|
||||
}
|
||||
|
||||
void MapSector::getBlocks(std::list<MapBlock*> &dest)
|
||||
void MapSector::getBlocks(MapBlockVect &dest)
|
||||
{
|
||||
for(std::map<s16, MapBlock*>::iterator bi = m_blocks.begin();
|
||||
bi != m_blocks.end(); ++bi)
|
||||
|
Reference in New Issue
Block a user