summaryrefslogtreecommitdiff
path: root/src/mapsector.h
diff options
context:
space:
mode:
authorLars <larsh@apache.org>2020-10-18 16:38:51 -0700
committerlhofhansl <larsh@apache.org>2020-10-19 09:31:09 -0700
commitb826e3973065a0bb81269c8decb5a33073508164 (patch)
tree37e631b9b7403b07ebef0a1a113d39d7b30be07c /src/mapsector.h
parentdb9eee2d80cc2a35bd133473d131f321dc4600c3 (diff)
downloadminetest-b826e3973065a0bb81269c8decb5a33073508164.tar.gz
minetest-b826e3973065a0bb81269c8decb5a33073508164.tar.bz2
minetest-b826e3973065a0bb81269c8decb5a33073508164.zip
Minor clientmap improvements.
- Avoid calculating isBlockInSight for blocks without meshes. - Add metric for how many blocks the client has currently loaded. - Make some variables constant.
Diffstat (limited to 'src/mapsector.h')
-rw-r--r--src/mapsector.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mapsector.h b/src/mapsector.h
index dede364f6..ffd4cdd1d 100644
--- a/src/mapsector.h
+++ b/src/mapsector.h
@@ -62,6 +62,7 @@ public:
bool empty() const { return m_blocks.empty(); }
+ int size() const { return m_blocks.size(); }
protected:
// The pile of MapBlocks