Fix board shapes, spectator-stuck, and display name on reconnect
- GameEngine.cs: 2-player Initialize overload was hardcoding "Rectangle" regardless of rules.BoardShape — now uses rules?.BoardShape ?? "Rectangle" - game_screen.gd: _on_player_eliminated was setting _is_spectating but not calling _setup_spectator_ui(), leaving eliminated players with no Leave button - GameGetStateHandler.cs: on reconnect (game.get_state), populate missing display names from identity DB so old/reconnected sessions show real names instead of truncated account IDs Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -3515,6 +3515,7 @@ You can continue watching the game as a spectator."
|
||||
# If the local player was eliminated, switch to read-only spectator view.
|
||||
if is_me:
|
||||
_is_spectating = true
|
||||
_setup_spectator_ui()
|
||||
|
||||
func _on_state_updated(state: Dictionary) -> void:
|
||||
print("[StateUpdate] phase=", state.get("phase","?"),
|
||||
|
||||
Reference in New Issue
Block a user