summaryrefslogtreecommitdiff
path: root/src/mapsector.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-02-17 15:28:49 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-02-17 15:28:49 +0100
commitfd70f4f2f040b64064676706e41d6da90c2b00db (patch)
tree14637ffc1d3d7c8889fed247496299c708135341 /src/mapsector.cpp
parent3c91ad8fc2b7a7888503e85d31bfe286afa6560d (diff)
downloadminetest-fd70f4f2f040b64064676706e41d6da90c2b00db.tar.gz
minetest-fd70f4f2f040b64064676706e41d6da90c2b00db.tar.bz2
minetest-fd70f4f2f040b64064676706e41d6da90c2b00db.zip
Replace std::list by std::vector into ClientMap::updateDrawList, Map::timerUpdate and ServerMap::save().
This will speedup the loop reading into those functions
Diffstat (limited to 'src/mapsector.cpp')
-rw-r--r--src/mapsector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapsector.cpp b/src/mapsector.cpp
index 0d40a659d..7bc4bd3a3 100644
--- a/src/mapsector.cpp
+++ b/src/mapsector.cpp
@@ -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)