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/mapsector.h | |
parent | 3c91ad8fc2b7a7888503e85d31bfe286afa6560d (diff) | |
download | minetest-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.h')
-rw-r--r-- | src/mapsector.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mapsector.h b/src/mapsector.h index dac4ee8d6..e89247a92 100644 --- a/src/mapsector.h +++ b/src/mapsector.h @@ -22,11 +22,11 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes.h" #include "irr_v2d.h" +#include "mapblock.h" #include <ostream> #include <map> -#include <list> +#include <vector> -class MapBlock; class Map; class IGameDef; @@ -61,7 +61,7 @@ public: void deleteBlock(MapBlock *block); - void getBlocks(std::list<MapBlock*> &dest); + void getBlocks(MapBlockVect &dest); // Always false at the moment, because sector contains no metadata. bool differs_from_disk; |