Record sizes in one header; the engine's club count from the world layout

game/records.hpp names the sizes of the manager record, the tactics board, a
board slot and the club record; 58 local copies of these numbers refer to it.
The six local club count constants of the engine (138) are gone, their uses
read world_layout().league_teams.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude committed 2026-11-11 00:15:40 +01:00
1 parent d552c59a77
commit 31ff36fb09
40 files changed
+96 -85

No files matched your search

+2 -2
View File
@@ -35,8 +35,8 @@ constexpr uint32_t kTransferList = ::bmh::layout::EditorList; // 44 entries of
constexpr uint32_t kListEntry = 0x58;
constexpr size_t kPoolSlots = 0xb70; // CareerRuntimeField
constexpr uint32_t kOffers = ::bmh::layout::OfferSlots; // OfferSlots: 4 offers, -1 = free
constexpr size_t kBoard = 0x840; // tactics board of a manager
constexpr size_t kBoardSlot = 0x58;
constexpr size_t kBoard = kTacticsBoardSize; // tactics board of a manager
constexpr size_t kBoardSlot = kTacticsBoardSlotSize;
uint32_t board32(const GameState& g, size_t at) {
return uint32_t(g.tactics.at(at) | g.tactics.at(at + 1) << 8 | g.tactics.at(at + 2) << 16) |