diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-12-21 14:15:11 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-12-21 14:15:11 +0100 |
commit | 5b35174ffab42f0331f1a6527ef6bbab7a3dbdcb (patch) | |
tree | 071530353b02f45fffc26aa4b0f43f7b901b3046 /UI/PlayerLobby/lobby.gd | |
parent | a854a1862a30632e49520f6e1e11333d5c8ff241 (diff) |
Diffstat (limited to 'UI/PlayerLobby/lobby.gd')
-rw-r--r-- | UI/PlayerLobby/lobby.gd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/UI/PlayerLobby/lobby.gd b/UI/PlayerLobby/lobby.gd index 4169478..8c1c4a9 100644 --- a/UI/PlayerLobby/lobby.gd +++ b/UI/PlayerLobby/lobby.gd @@ -45,7 +45,7 @@ func _ready() -> void: if multiplayer.is_server(): $KeepAliveTimer.start() $KeepAliveTimer.timeout.connect(func(): - GameLobby.request_post("/keep-alive") + await GameLobby.request_post("/keep-alive") ) @@ -77,6 +77,7 @@ func update_list(current_list: Control, player_ids: Array): control.get_child(0).text = str(player.username) control.get_child(0).tooltip_text = str(id) current_list.move_child(control, player_ids.find(id) + 1) + # TODO: test with 3 players func _on_peer_connected(id): |