1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-17 17:08:39 +00:00

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.
This commit is contained in:
Lars 2020-10-18 16:38:51 -07:00 committed by lhofhansl
parent db9eee2d80
commit b826e39730
2 changed files with 20 additions and 17 deletions

View file

@ -62,6 +62,7 @@ public:
bool empty() const { return m_blocks.empty(); }
int size() const { return m_blocks.size(); }
protected:
// The pile of MapBlocks