summaryrefslogtreecommitdiff
path: root/src/mapblock.h
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/mapblock.h
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/mapblock.h')
-rw-r--r--src/mapblock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapblock.h b/src/mapblock.h
index e7d7798b8..76ba94c34 100644
--- a/src/mapblock.h
+++ b/src/mapblock.h
@@ -614,6 +614,8 @@ private:
int m_refcount;
};
+typedef std::vector<MapBlock*> MapBlockVect;
+
inline bool blockpos_over_limit(v3s16 p)
{
return