From bf3de3775b62383f2f31b24eacb849dfaff406b4 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 3 Dec 2021 16:05:22 -0600 Subject: [PATCH] Pro --- multiplayer.gd | 3 +-- signaller_client.gd | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/multiplayer.gd b/multiplayer.gd index 7139643..701301d 100644 --- a/multiplayer.gd +++ b/multiplayer.gd @@ -13,7 +13,7 @@ func _ready(): Global.client.signaller.request_lobby_list() func _draw(): - $join.disabled = len($lobbies.get_selected_items()) < 1 + $join.disabled = len($lobbies.get_selected_items()) <= 1 func _signaller_disconnected(): Global.main_menu() @@ -50,6 +50,5 @@ func _lobby_delete(id): $lobbies.remove_item(i) return - func _on_lobbies_item_activated(index): _on_join_pressed() diff --git a/signaller_client.gd b/signaller_client.gd index 782aae2..875066f 100644 --- a/signaller_client.gd +++ b/signaller_client.gd @@ -57,7 +57,7 @@ func _connected(protocol = ""): func _process(_delta: float): var status: int = ws.get_connection_status() - if status == WebSocketClient.CONNECTION_CONNECTING or status == WebSocketClient.CONNECTION_CONNECTED: + if status == WebSocketClient.CONNECTION_CONNECTED: ws.poll() func join_lobby(id: String):