mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fine-tuning of map generator and server and stuff.
This commit is contained in:
parent
7068bc90af
commit
3891bc43e0
11 changed files with 298 additions and 113 deletions
14
src/server.h
14
src/server.h
|
@ -231,7 +231,8 @@ public:
|
|||
u8 pending_serialization_version;
|
||||
|
||||
RemoteClient():
|
||||
m_time_from_building(9999)
|
||||
m_time_from_building(9999),
|
||||
m_excess_gotblocks(0)
|
||||
{
|
||||
peer_id = 0;
|
||||
serialization_version = SER_FMT_VER_INVALID;
|
||||
|
@ -295,7 +296,9 @@ public:
|
|||
<<", m_blocks_sent.size()="<<m_blocks_sent.size()
|
||||
<<", m_blocks_sending.size()="<<m_blocks_sending.size()
|
||||
<<", m_nearest_unsent_d="<<m_nearest_unsent_d
|
||||
<<", m_excess_gotblocks="<<m_excess_gotblocks
|
||||
<<std::endl;
|
||||
m_excess_gotblocks = 0;
|
||||
}
|
||||
|
||||
// Time from last placing or removing blocks
|
||||
|
@ -347,6 +350,15 @@ private:
|
|||
*/
|
||||
core::map<v3s16, float> m_blocks_sending;
|
||||
JMutex m_blocks_sending_mutex;
|
||||
|
||||
/*
|
||||
Count of excess GotBlocks().
|
||||
There is an excess amount because the client sometimes
|
||||
gets a block so late that the server sends it again,
|
||||
and the client then sends two GOTBLOCKs.
|
||||
This is resetted by PrintInfo()
|
||||
*/
|
||||
u32 m_excess_gotblocks;
|
||||
};
|
||||
|
||||
/*struct ServerSettings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue