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

+1 -1
View File
@@ -1183,7 +1183,7 @@ bool other_games_source_manager_owned(const GameState& g,int team) {
throw FormatError("other games: invalid Source manager count for club detail redraw");
for(size_t manager=0;manager<count;++manager)
if(g.manager_teams[manager]==team)return true;
constexpr size_t national_record=4*0xb0c+0x290;
constexpr size_t national_record=4 * kManagerRecordSize+0x290;
if(!g.manager_teams.empty()&&g.manager_teams.front()==kNoTeam&&
g.manager_records.size()>=national_record+2)
return int(uint16_t(g.manager_records[national_record]|