From b83f447ff6978509fdf23e9813eff6d7b5a6ffa2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 2 Mar 2023 20:52:56 +0100 Subject: main: set collect threshold depending on screen resolution --- src/world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/world.cpp') diff --git a/src/world.cpp b/src/world.cpp index 20805905..1fcee1d8 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -44,7 +44,7 @@ void world::clear() void world::maybe_collect() { - if (_chunks.size() > _last_collection + collect_every) + if (_chunks.size() > _last_collection + _collect_every) collect(); } -- cgit v1.2.3