diff options
author | Lars <larsh@apache.org> | 2020-10-18 16:38:51 -0700 |
---|---|---|
committer | lhofhansl <larsh@apache.org> | 2020-10-19 09:31:09 -0700 |
commit | b826e3973065a0bb81269c8decb5a33073508164 (patch) | |
tree | 37e631b9b7403b07ebef0a1a113d39d7b30be07c /src/mapsector.h | |
parent | db9eee2d80cc2a35bd133473d131f321dc4600c3 (diff) | |
download | minetest-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.h | 1 |
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 |