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:
1 parent
d552c59a77
commit
31ff36fb09
40 files changed
+96
-85
No files matched your search
@@ -153,7 +153,7 @@ OtherGamesRow make_row(const GameState& game, int home, int away, uint16_t resul
|
||||
OtherGamesClubMetadata source_metadata(const GameState& game, int team) {
|
||||
OtherGamesClubMetadata out;
|
||||
bool manager_owned = game.manager_of(team) >= 0;
|
||||
constexpr size_t kNationalOriginalClub = 4 * 0xb0c + 0x290;
|
||||
constexpr size_t kNationalOriginalClub = 4 * kManagerRecordSize + 0x290;
|
||||
if (!manager_owned && !game.manager_teams.empty() && game.manager_teams[0] == kNoTeam &&
|
||||
game.manager_records.size() >= kNationalOriginalClub + 2) {
|
||||
const int original_club = int(uint16_t(game.manager_records[kNationalOriginalClub] |
|
||||
|
||||
Reference in new issue
Block a user