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:
parent
db9eee2d80
commit
b826e39730
2 changed files with 20 additions and 17 deletions
|
@ -62,6 +62,7 @@ public:
|
|||
|
||||
bool empty() const { return m_blocks.empty(); }
|
||||
|
||||
int size() const { return m_blocks.size(); }
|
||||
protected:
|
||||
|
||||
// The pile of MapBlocks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue