Add: [GS] Allow to set max loan for each company separately (#11224)

This commit is contained in:
dP
2024-01-30 19:15:19 +01:00
committed by GitHub
parent b370ae1212
commit 897b59c158
15 changed files with 129 additions and 20 deletions
+6
View File
@@ -3280,6 +3280,12 @@ bool AfterLoadGame()
}
}
if (IsSavegameVersionBefore(SLV_MAX_LOAN_FOR_COMPANY)) {
for (Company *c : Company::Iterate()) {
c->max_loan = COMPANY_MAX_LOAN_DEFAULT;
}
}
for (Company *c : Company::Iterate()) {
UpdateCompanyLiveries(c);
}