diff options
author | Jeija <norrepli@gmail.com> | 2016-02-15 16:05:40 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2016-03-12 23:59:44 +0100 |
commit | 089f9bbe817debc5c30f1d845170909f638c9642 (patch) | |
tree | b5f14a06e4659fd47e3d3c1f74d20ea859df9d5b /src/clientiface.h | |
parent | 2c72f6da7b7595d2e180937f05f902c510ef1c14 (diff) | |
download | minetest-089f9bbe817debc5c30f1d845170909f638c9642.tar.gz minetest-089f9bbe817debc5c30f1d845170909f638c9642.tar.bz2 minetest-089f9bbe817debc5c30f1d845170909f638c9642.zip |
Resend blocks when modified while sending to client
Diffstat (limited to 'src/clientiface.h')
-rw-r--r-- | src/clientiface.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/clientiface.h b/src/clientiface.h index d7622cad3..c09942909 100644 --- a/src/clientiface.h +++ b/src/clientiface.h @@ -395,6 +395,16 @@ private: std::map<v3s16, float> m_blocks_sending; /* + Blocks that have been modified since last sending them. + These blocks will not be marked as sent, even if the + client reports it has received them to account for blocks + that are being modified while on the line. + + List of block positions. + */ + std::set<v3s16> m_blocks_modified; + + /* Count of excess GotBlocks(). There is an excess amount because the client sometimes gets a block so late that the server sends it again, |