You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Funnel refuse_new_connections to Godot ENet.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user