diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-27 14:36:20 +0100 | 
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-27 14:36:20 +0100 | 
| commit | a854a1862a30632e49520f6e1e11333d5c8ff241 (patch) | |
| tree | 2b10c4d19bb66b270a7726d660ed85d7fcf9482e /UI/PlayerLobby | |
| parent | cb9bb9d1c757b53707c741a3c8c218b513ffb5ec (diff) | |
next commit
Diffstat (limited to 'UI/PlayerLobby')
| -rw-r--r-- | UI/PlayerLobby/lobby.gd | 9 | 
1 files changed, 1 insertions, 8 deletions
diff --git a/UI/PlayerLobby/lobby.gd b/UI/PlayerLobby/lobby.gd index 6506097..4169478 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(): -			Client.request(Client.game_lobby_url, [], HTTPClient.METHOD_POST, JSON.stringify({"keep-alive": Client.current_game_id})) +			GameLobby.request_post("/keep-alive")  		) @@ -92,13 +92,6 @@ func _on_start_button_pressed() -> void:  func _on_cancel_button_pressed() -> void:  	multiplayer.multiplayer_peer.close() -	await Client.request( -		"%s" % [Client.game_lobby_url], -		[], -		HTTPClient.METHOD_POST, -		JSON.stringify({"close": Client.current_game_id}) -	) -	  	# TODO: if was host => Start. if was joined and connected from list => List  	get_tree().change_scene_to_file("res://UI/Start.tscn")  | 
