From d109cd7c0d7f0436978e0af3ca8bcf7b7595974f Mon Sep 17 00:00:00 2001 From: dingo Date: Tue, 7 Apr 2026 20:02:27 -0400 Subject: [PATCH] Fix hex board template not being applied: include GridType and HexSides in snapshot Both GameLobbyReadyHandler and MatchmakerService were building BoardTemplateSnapshot without GridType/HexSides. FromTemplate checks HexSides > 0 to set IsTemplateBased, so hex templates were silently treated as square grids. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- Server/src/SOR.Game/Handlers/GameLobbyReadyHandler.cs | 2 ++ Server/src/SOR.Matchmaking/MatchmakerService.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Server/src/SOR.Game/Handlers/GameLobbyReadyHandler.cs b/Server/src/SOR.Game/Handlers/GameLobbyReadyHandler.cs index b58ce4b..323fbf6 100644 --- a/Server/src/SOR.Game/Handlers/GameLobbyReadyHandler.cs +++ b/Server/src/SOR.Game/Handlers/GameLobbyReadyHandler.cs @@ -259,6 +259,8 @@ internal sealed class GameLobbyReadyHandler : GameHandlerBase, IMessageHandler { Width = tmpl.Width, Height = tmpl.Height, + GridType = tmpl.GridType, + HexSides = tmpl.HexSides, Tiles = tiles, StartingZones = zones, }, tileOpts); diff --git a/Server/src/SOR.Matchmaking/MatchmakerService.cs b/Server/src/SOR.Matchmaking/MatchmakerService.cs index 1ee0683..db0b861 100644 --- a/Server/src/SOR.Matchmaking/MatchmakerService.cs +++ b/Server/src/SOR.Matchmaking/MatchmakerService.cs @@ -125,6 +125,8 @@ internal sealed class MatchmakerService : BackgroundService { width = tmpl.Width, height = tmpl.Height, + gridType = tmpl.GridType, + hexSides = tmpl.HexSides, tiles = tilesElem, startingZones = zonesElem, });