diff options
author | sapier <Sapier at GMX dot net> | 2014-07-12 20:20:11 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-08-22 20:56:16 +0200 |
commit | 8e9d896f2d4bd3c9579170d01e14f1dd5e514362 (patch) | |
tree | 69f53c3cb51e481ccd21418470f552b60b57ef11 /src/clientiface.cpp | |
parent | 247a1ebf2317556eea79a018fb236a0145e55121 (diff) | |
download | hax-minetest-server-8e9d896f2d4bd3c9579170d01e14f1dd5e514362.tar.gz hax-minetest-server-8e9d896f2d4bd3c9579170d01e14f1dd5e514362.zip |
Fix "ghost" blocks if block update is "on wire" while player digs nodes
Diffstat (limited to 'src/clientiface.cpp')
-rw-r--r-- | src/clientiface.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/clientiface.cpp b/src/clientiface.cpp index 2841b212f..ebbbc65bc 100644 --- a/src/clientiface.cpp +++ b/src/clientiface.cpp @@ -52,6 +52,13 @@ std::string ClientInterface::state2Name(ClientState state) return statenames[state]; } +void RemoteClient::ResendBlockIfOnWire(v3s16 p) +{ + // if this block is on wire, mark it for sending again as soon as possible + if (m_blocks_sending.find(p) != m_blocks_sending.end()) { + SetBlockNotSent(p); + } +} void RemoteClient::GetNextBlocks( ServerEnvironment *env, |