diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-17 14:30:32 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-17 14:35:44 +0100 |
commit | 718bcafd5174690a7731f9b04873e9a09f7a47b7 (patch) | |
tree | a2414ca7dde34e097bfe6fe2b4d8a1e0701d10fb /src/map.h | |
parent | c58d49977da5aab88f5a9d5b540c6237ca5cdcb5 (diff) | |
download | minetest-718bcafd5174690a7731f9b04873e9a09f7a47b7.tar.gz minetest-718bcafd5174690a7731f9b04873e9a09f7a47b7.tar.bz2 minetest-718bcafd5174690a7731f9b04873e9a09f7a47b7.zip |
Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ServerMap::listAllLoadedBlocks and their database backends.
This adds a speedup on database migration and /clearobjects command
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -466,8 +466,8 @@ public: void endSave(); void save(ModifiedState save_level); - void listAllLoadableBlocks(std::list<v3s16> &dst); - void listAllLoadedBlocks(std::list<v3s16> &dst); + void listAllLoadableBlocks(std::vector<v3s16> &dst); + void listAllLoadedBlocks(std::vector<v3s16> &dst); // Saves map seed and possibly other stuff void saveMapMeta(); void loadMapMeta(); |