Harden multiplayer rejoin and eliminate-concede cleanup semantics

This commit is contained in:
Shard
2026-03-27 14:06:50 +00:00
parent 6d20af8c1a
commit 8736217241
5 changed files with 63 additions and 8 deletions
@@ -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()