summaryrefslogtreecommitdiff
path: root/src/clientiface.h
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2017-09-09 00:36:48 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-09-09 00:36:48 +0200
commit745a90dc84339774a37fddff480dd60c69f4cc2a (patch)
treeb856c29bd9fb13f31c3349866f2de9624bf56a3e /src/clientiface.h
parent1105a14bccefb48a0e264fe19190c39629259338 (diff)
downloadminetest-745a90dc84339774a37fddff480dd60c69f4cc2a.tar.gz
minetest-745a90dc84339774a37fddff480dd60c69f4cc2a.tar.bz2
minetest-745a90dc84339774a37fddff480dd60c69f4cc2a.zip
Server: Calculate maximal total block sends dynamically (#6393)
The block sends per client is 1/2 when reaching the maximal player count.
Diffstat (limited to 'src/clientiface.h')
-rw-r--r--src/clientiface.h5
1 files changed, 1 insertions, 4 deletions
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