From 745a90dc84339774a37fddff480dd60c69f4cc2a Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 9 Sep 2017 00:36:48 +0200 Subject: Server: Calculate maximal total block sends dynamically (#6393) The block sends per client is 1/2 when reaching the maximal player count. --- src/clientiface.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/clientiface.h') diff --git a/src/clientiface.h b/src/clientiface.h index 4d61ae74e..4850b0c2a 100644 --- a/src/clientiface.h +++ b/src/clientiface.h @@ -272,10 +272,7 @@ public: */ void ResendBlockIfOnWire(v3s16 p); - s32 SendingCount() - { - return m_blocks_sending.size(); - } + u32 getSendingCount() const { return m_blocks_sending.size(); } // Increments timeouts and removes timed-out blocks from list // NOTE: This doesn't fix the server-not-sending-block bug -- cgit v1.2.3