|
|
@ -648,13 +648,8 @@ static void CompaniesGenStatistics()
|
|
|
|
|
|
|
|
|
|
|
|
Backup<CompanyID> cur_company(_current_company, FILE_LINE);
|
|
|
|
Backup<CompanyID> cur_company(_current_company, FILE_LINE);
|
|
|
|
|
|
|
|
|
|
|
|
if (!_settings_game.economy.infrastructure_maintenance) {
|
|
|
|
/* Pay Infrastructure Maintenance, if enabled */
|
|
|
|
for (const Station *st : Station::Iterate()) {
|
|
|
|
if (_settings_game.economy.infrastructure_maintenance) {
|
|
|
|
cur_company.Change(st->owner);
|
|
|
|
|
|
|
|
CommandCost cost(EXPENSES_PROPERTY, _price[PR_STATION_VALUE] >> 1);
|
|
|
|
|
|
|
|
SubtractMoneyFromCompany(cost);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
/* Improved monthly infrastructure costs. */
|
|
|
|
/* Improved monthly infrastructure costs. */
|
|
|
|
for (const Company *c : Company::Iterate()) {
|
|
|
|
for (const Company *c : Company::Iterate()) {
|
|
|
|
cur_company.Change(c->index);
|
|
|
|
cur_company.Change(c->index);
|
|
|
|