From 8e9d896f2d4bd3c9579170d01e14f1dd5e514362 Mon Sep 17 00:00:00 2001 From: sapier Date: Sat, 12 Jul 2014 20:20:11 +0200 Subject: Fix "ghost" blocks if block update is "on wire" while player digs nodes --- src/clientiface.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/clientiface.h') 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 &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(); -- cgit v1.2.3