You've already forked godot
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:
committed by
Rémi Verschelde
parent
91b2d020a8
commit
18eddfc98d
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user