Accept data revision 1.4: real ages for all players (M5)
Revision 1.4 of the Modern data set brings birth dates for every player, the camp catalogue with its maps and 100 referees. The expansion now takes the age from a birth date for the original players as well (WorldPlayer::born); before, only the added players kept their data age. The yearly aging stops at 47, the most the age bits hold, so real ages (a goalkeeper of 40) cannot run into the bits above. The season sim counts second referee assignments per day. Two seasons and ten seasons run through; the save round trip is identical; second referee assignments drop to about 7 a season. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7de6f644f2
commit
44a7a77915
8 files changed
+35
-4
No files matched your search
@@ -1249,7 +1249,8 @@ void season_players(ModernState& g, GameRandom& game, WatcomRandom& rand, Minute
|
||||
}
|
||||
}
|
||||
if (!leaves) {
|
||||
set_age(g, player, age); // SetAge
|
||||
// OpenBMH deviates from the original: in Modern the age stops at 47, the most its five bits hold; real ages of a data set (a goalkeeper of 40) would otherwise run into the bits above.
|
||||
set_age(g, player, std::min(age, 0x1f)); // SetAge
|
||||
last_team = uint16_t(team);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user