summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-08-10 22:24:47 +0200
committerest31 <MTest31@outlook.com>2015-08-13 07:56:07 +0200
commita8e238ed06ee8285ed4459e9deda3117419837f6 (patch)
tree9d2d9caee1f9d1a3944d1ba078e7df6e9f13d7c3 /src/client.cpp
parent2b04ab874d75711bc021a0cd8dc7fca68f4e6929 (diff)
downloadminetest-a8e238ed06ee8285ed4459e9deda3117419837f6.tar.gz
minetest-a8e238ed06ee8285ed4459e9deda3117419837f6.tar.bz2
minetest-a8e238ed06ee8285ed4459e9deda3117419837f6.zip
Add count based unload limit for mapblocks
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index d4d3b6df6..946f4f1c4 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -421,8 +421,9 @@ void Client::step(float dtime)
ScopeProfiler sp(g_profiler, "Client: map timer and unload");
std::vector<v3s16> deleted_blocks;
m_env.getMap().timerUpdate(map_timer_and_unload_dtime,
- g_settings->getFloat("client_unload_unused_data_timeout"),
- &deleted_blocks);
+ g_settings->getFloat("client_unload_unused_data_timeout"),
+ g_settings->getS32("client_mapblock_limit"),
+ &deleted_blocks);
/*
Send info to server