diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-07-13 19:14:27 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-07-14 14:10:18 +0200 |
commit | 7ec5c917d143783c04a2816d3da7ebc48d47816b (patch) | |
tree | 8a6274d9dc2b74b099c64ffbd3c73448d508f7c7 /modules | |
parent | 839c7b1ba3e57008ebaca39f6c472c2b281129ec (diff) |
Funnel refuse_new_connections to Godot ENet.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/enet/networked_multiplayer_enet.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/enet/networked_multiplayer_enet.cpp b/modules/enet/networked_multiplayer_enet.cpp index 4e7698b67c..ed3924f2d2 100644 --- a/modules/enet/networked_multiplayer_enet.cpp +++ b/modules/enet/networked_multiplayer_enet.cpp @@ -640,6 +640,9 @@ int NetworkedMultiplayerENet::get_unique_id() const { void NetworkedMultiplayerENet::set_refuse_new_connections(bool p_enable) { refuse_connections = p_enable; +#ifdef GODOT_ENET + enet_host_refuse_new_connections(host, p_enable); +#endif } bool NetworkedMultiplayerENet::is_refusing_new_connections() const { |