1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00: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:
Loic Blot 2015-02-17 15:28:49 +01:00
parent 3c91ad8fc2
commit fd70f4f2f0
5 changed files with 32 additions and 42 deletions

View file

@ -614,6 +614,8 @@ private:
int m_refcount;
};
typedef std::vector<MapBlock*> MapBlockVect;
inline bool blockpos_over_limit(v3s16 p)
{
return