mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 11:44:21 +00:00
Funnel refuse_new_connections to Godot ENet.
This commit is contained in:
parent
839c7b1ba3
commit
7ec5c917d1
3 changed files with 15 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue