Funnel refuse_new_connections to Godot ENet.

This commit is contained in:
Fabio Alessandrelli 2020-07-13 19:14:27 +02:00
parent 839c7b1ba3
commit 7ec5c917d1
3 changed files with 15 additions and 0 deletions

View file

@ -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 {