Modern: fixture table per league size, league dates and finished leagues (M2)
- schedule: kLeagueTablesPerLeague lets every league use the table of its own size (international leagues of 20 and 18 side by side); Classic leaves it off. - Modern: a league that has played all its rounds sits out the remaining dates of its calendar group. - modern/game/world_calendar: season days of ISO dates and placing a league group's dates in the season calendar around special days, with tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2fcb28f65
commit
a4a37f1cb2
10 files changed
+189
-6
No files matched your search
@@ -719,6 +719,8 @@ void advance_league_rounds(ModernState& g, uint32_t competitions, WatcomRandom&
|
||||
const int end = bit < 4 ? bit + 1 : 8;
|
||||
for (int c = bit; c < end; c++) {
|
||||
for (int league = kFirst[c]; league < kFirst[c] + kCount[c]; league++) {
|
||||
// Modern: a league that has played all its rounds sits out (see setup_matchday).
|
||||
if (g.league_rounds.at(size_t(league)) >= league_matchdays(league)) continue;
|
||||
if (league == 0) {
|
||||
for (size_t m = 0; m < g.manager_teams.size(); m++) {
|
||||
modern::advance_youth_teams(g, int(m), rand);
|
||||
|
||||
Reference in new issue
Block a user