Fix rain coverage and in-game session switching
This commit is contained in:
parent
2045d8e288
commit
e54ad1332b
8 changed files with 81 additions and 15 deletions
|
|
@ -1555,8 +1555,13 @@ func _on_pause_join_game_requested(endpoint: String) -> void:
|
|||
_join_requested_from_title = false
|
||||
_pending_join_endpoint = endpoint
|
||||
_game_ui.get_pause_menu().close_for_title_transition()
|
||||
var preserved_public_join: bool = (
|
||||
_discovery.preserve_public_join_for_session_switch()
|
||||
)
|
||||
_network_session.disconnect_session("Connecting to another game.")
|
||||
if not _network_session.join_direct(endpoint):
|
||||
if preserved_public_join:
|
||||
_discovery.cancel_pending_public_join()
|
||||
_handle_failed_session_switch(
|
||||
"Could not begin the direct connection."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue