Fix 3rd-player lobby ready-up and board shape fallback
3rd-player ready-up (two root causes): - Server: LobbyReadyStatusPush to additional players was deserialized without PropertyNameCaseInsensitive, so after the 3rd player readied (converting JSON to camelCase) all subsequent pushes went to Guid.Empty → 3rd player never received ready/start notifications - Client: ready_status push handler treated all non-hosts as "guest", so i_am_ready was incorrectly set from guestReady for additional players → their ready state was clobbered every time host/guest readied - Server: JoinCustomLobbyResponse now includes IsAdditionalPlayer flag so the client can correctly distinguish guest from 3rd+ player Board shape fallback: - GameEngine.cs 2-player overload and GameReadyHandler N-player path both now treat "Default"/null BoardShape as AutoShape(playerCount) rather than hardcoded "Rectangle", fixing old sessions and ranked matches 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:
@@ -261,7 +261,8 @@ public sealed record JoinCustomLobbyResponse(
|
||||
string GuestDisplayName,
|
||||
int MaxPlayers,
|
||||
string GameMode,
|
||||
int TeamCount);
|
||||
int TeamCount,
|
||||
bool IsAdditionalPlayer = false); // true for 3rd+ players (not host or first guest)
|
||||
|
||||
public sealed record LeaveCustomLobbyResponse(Guid LobbyId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user