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.h | |
| parent | 247a1ebf2317556eea79a018fb236a0145e55121 (diff) | |
| download | minetest-8e9d896f2d4bd3c9579170d01e14f1dd5e514362.tar.xz | |
Fix "ghost" blocks if block update is "on wire" while player digs nodes
Diffstat (limited to 'src/clientiface.h')
| -rw-r--r-- | src/clientiface.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/clientiface.h b/src/clientiface.h index 5452ccddb..cb3dae04b 100644 --- a/src/clientiface.h +++ b/src/clientiface.h @@ -238,6 +238,14 @@ public: void SetBlockNotSent(v3s16 p); void SetBlocksNotSent(std::map<v3s16, MapBlock*> &blocks); + /** + * tell client about this block being modified right now. + * this information is required to requeue the block in case it's "on wire" + * while modification is processed by server + * @param p position of modified block + */ + void ResendBlockIfOnWire(v3s16 p); + s32 SendingCount() { return m_blocks_sending.size(); |
