From 297beea5bf95c8ea0b6fe08aed287b94487d24ea Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Thu, 16 Aug 2018 20:10:34 +0200 Subject: Check node updates whether the blocks are known (#7568) * Remove unused ignore_id --- src/server.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server.h') diff --git a/src/server.h b/src/server.h index 8ac61aaad..751eaa5f2 100644 --- a/src/server.h +++ b/src/server.h @@ -416,11 +416,11 @@ private: far_d_nodes are ignored and their peer_ids are added to far_players */ // Envlock and conlock should be locked when calling these - void sendRemoveNode(v3s16 p, u16 ignore_id=0, - std::vector *far_players=NULL, float far_d_nodes=100); - void sendAddNode(v3s16 p, MapNode n, u16 ignore_id=0, - std::vector *far_players=NULL, float far_d_nodes=100, - bool remove_metadata=true); + void sendRemoveNode(v3s16 p, std::unordered_set *far_players = nullptr, + float far_d_nodes = 100); + void sendAddNode(v3s16 p, MapNode n, + std::unordered_set *far_players = nullptr, + float far_d_nodes = 100, bool remove_metadata = true); // Environment and Connection must be locked when called void SendBlockNoLock(session_t peer_id, MapBlock *block, u8 ver, u16 net_proto_version); -- cgit v1.2.3