Bind native manager actions and preserve ongoing Modern standings (by Codex)

This commit is contained in:
Codex committed 2026-10-29 21:24:49 +01:00
1 parent f9f950fc7f
commit cf424b6be1
31 files changed
+466 -100

No files matched your search

+4 -1
View File
@@ -571,7 +571,10 @@ bool career_add_manager(ModernState& g, const LeImage& exe, int m, const CareerM
set_club_strength(g, team, 0, rand);
place = 0;
}
if (league == 0 && place != 0) {
// OpenBMH deviates from the original: retains an existing Modern club's
// league slot when a human joins, preserving its played results.
const bool keep_existing_slot = adding && !g.world_club_id.empty() && team_league(team) == league;
if (league == 0 && place != 0 && !keep_existing_slot) {
if (adding) remove_join_transfers(g, place);
modern::clubs_change_places(g, int16_t(team_of(g, m)), place);
}