1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Funnel refuse_new_connections to Godot ENet.

(cherry picked from commit 7ec5c917d1)
This commit is contained in:
Fabio Alessandrelli
2020-07-13 19:14:27 +02:00
committed by Rémi Verschelde
parent 91b2d020a8
commit 18eddfc98d
3 changed files with 15 additions and 0 deletions

View File

@@ -668,6 +668,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 {