Harden multiplayer rejoin and eliminate-concede cleanup semantics
This commit is contained in:
@@ -178,6 +178,13 @@ func _on_active_session(payload: Variant) -> void:
|
||||
_go_to_main()
|
||||
return
|
||||
|
||||
var can_rejoin_raw = p.get("canRejoinAsPlayer")
|
||||
if can_rejoin_raw != null and not bool(can_rejoin_raw):
|
||||
# Player is already eliminated/conceded in the active match.
|
||||
# Don't prompt to rejoin as a player; they can spectate manually from Active Games.
|
||||
_go_to_main()
|
||||
return
|
||||
|
||||
var phase_raw = p.get("phase")
|
||||
var phase : String = str(phase_raw) if phase_raw != null else "unknown"
|
||||
var dialog := ConfirmationDialog.new()
|
||||
|
||||
Reference in New Issue
Block a user