diff options
| author | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-17 15:28:49 +0100 |
|---|---|---|
| committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-17 15:28:49 +0100 |
| commit | fd70f4f2f040b64064676706e41d6da90c2b00db (patch) | |
| tree | 14637ffc1d3d7c8889fed247496299c708135341 /src/mapblock.h | |
| parent | 3c91ad8fc2b7a7888503e85d31bfe286afa6560d (diff) | |
| download | minetest-fd70f4f2f040b64064676706e41d6da90c2b00db.tar.xz | |
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.h | 2 |
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 |
