X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fclientiface.h;h=5335fa6442ac601066bb27cc8c65adbc039492b1;hb=5f1cd555cd9d1c64426e173b30b5b792d211c835;hp=a7cbc01071d56aac0244e5a21488698d2db3ca37;hpb=6bab695479d42ac2b051b8a35639c32b22efbf8d;p=oweals%2Fminetest.git diff --git a/src/clientiface.h b/src/clientiface.h index a7cbc0107..5335fa644 100644 --- a/src/clientiface.h +++ b/src/clientiface.h @@ -274,6 +274,11 @@ public: u32 getSendingCount() const { return m_blocks_sending.size(); } + bool isBlockSent(v3s16 p) const + { + return m_blocks_sent.find(p) != m_blocks_sent.end(); + } + // Increments timeouts and removes timed-out blocks from list // NOTE: This doesn't fix the server-not-sending-block bug // because it is related to emerging, not sending. @@ -431,6 +436,9 @@ public: /* get list of active client id's */ std::vector getClientIDs(ClientState min_state=CS_Active); + /* mark block as not sent to active client sessions */ + void markBlockposAsNotSent(const v3s16 &pos); + /* verify is server user limit was reached */ bool isUserLimitReached();