summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-02-17 15:04:08 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-02-17 15:08:37 +0100
commit3c91ad8fc2b7a7888503e85d31bfe286afa6560d (patch)
tree3003e3fe5a9617651dc512f828ac7cbc3d5d155b /src/map.h
parent24315db6ef90125c3c62327f2ace654b548811ac (diff)
downloadminetest-3c91ad8fc2b7a7888503e85d31bfe286afa6560d.tar.gz
minetest-3c91ad8fc2b7a7888503e85d31bfe286afa6560d.tar.bz2
minetest-3c91ad8fc2b7a7888503e85d31bfe286afa6560d.zip
Replace std::list by std::vector into timerUpdate calls
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.h b/src/map.h
index e2736d560..f4ea54f30 100644
--- a/src/map.h
+++ b/src/map.h
@@ -277,13 +277,13 @@ public:
Saves modified blocks before unloading on MAPTYPE_SERVER.
*/
void timerUpdate(float dtime, float unload_timeout,
- std::list<v3s16> *unloaded_blocks=NULL);
+ std::vector<v3s16> *unloaded_blocks=NULL);
/*
Unloads all blocks with a zero refCount().
Saves modified blocks before unloading on MAPTYPE_SERVER.
*/
- void unloadUnreferencedBlocks(std::list<v3s16> *unloaded_blocks=NULL);
+ void unloadUnreferencedBlocks(std::vector<v3s16> *unloaded_blocks=NULL);
// Deletes sectors and their blocks from memory
// Takes cache into account