summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2018-08-16 20:10:34 +0200
committerGitHub <noreply@github.com>2018-08-16 20:10:34 +0200
commit297beea5bf95c8ea0b6fe08aed287b94487d24ea (patch)
tree60534b5da23a3a3386a1a5fdbb71cc9f977ebfba /src/server.h
parent325bf680410e8012394e5f3ba5ba947c69034899 (diff)
downloadminetest-297beea5bf95c8ea0b6fe08aed287b94487d24ea.tar.gz
minetest-297beea5bf95c8ea0b6fe08aed287b94487d24ea.tar.bz2
minetest-297beea5bf95c8ea0b6fe08aed287b94487d24ea.zip
Check node updates whether the blocks are known (#7568)
* Remove unused ignore_id
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h10
1 files changed, 5 insertions, 5 deletions
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<u16> *far_players=NULL, float far_d_nodes=100);
- void sendAddNode(v3s16 p, MapNode n, u16 ignore_id=0,
- std::vector<u16> *far_players=NULL, float far_d_nodes=100,
- bool remove_metadata=true);
+ void sendRemoveNode(v3s16 p, std::unordered_set<u16> *far_players = nullptr,
+ float far_d_nodes = 100);
+ void sendAddNode(v3s16 p, MapNode n,
+ std::unordered_set<u16> *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);