Files
sor/Server
fe62df5d56 Fix custom lobby rules not inheriting admin-configured defaults
GameLobbyReadyHandler was building effective game rules by falling back
directly to the hard-coded GameRules.Default for any field not explicitly
set by the lobby host. It never consulted the admin-configured
IsCustomDefault ruleset from the database.

This meant changes to ranked/custom rule settings (e.g. tile affinity %)
in the admin panel had no effect on custom lobby games unless the host
explicitly overrode every field via the rules editor.

Fix: load the IsCustomDefault GameRuleSet at game-start time and use it
as the intermediate fallback — lobby override → admin default → hard-coded
default — matching the same three-level chain used by GameCreateCustomLobbyHandler
when the lobby is first created.

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>
2026-03-22 12:54:07 -04:00
..