1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-06 02:05:30 +01:00

Some RemoteClient improvements

* Simplications
* Remove RemoteClient::m_blocks_modified
* Remove unneeded nearest_emergefull_d
This commit is contained in:
Lars
2025-04-12 09:25:33 -07:00
committed by lhofhansl
parent 0cf1c47f6c
commit 99150fadd1
2 changed files with 14 additions and 49 deletions

View File

@@ -388,19 +388,8 @@ private:
- The size of this list is limited to some value
Block is added when it is sent with BLOCKDATA.
Block is removed when GOTBLOCKS is received.
Value is time from sending. (not used at the moment)
*/
std::unordered_map<v3s16, float> m_blocks_sending;
/*
Blocks that have been modified since blocks were
sent to the client last (getNextBlocks()).
This is used to reset the unsent distance, so that
modified blocks are resent to the client.
List of block positions.
*/
std::unordered_set<v3s16> m_blocks_modified;
std::unordered_set<v3s16> m_blocks_sending;
/*
Count of excess GotBlocks().