Codechange: make VehicleType a scoped enum

This commit is contained in:
Peter Nelson
2026-04-26 07:00:13 +01:00
committed by Peter Nelson
parent b90aefbf49
commit 77403627a8
100 changed files with 1093 additions and 1054 deletions
+4 -4
View File
@@ -2026,10 +2026,10 @@ static bool ConCompanies(std::span<std::string_view> argv)
IConsolePrint(CC_INFO, "#:{}({}) Company Name: '{}' Year Founded: {} Money: {} Loan: {} Value: {} (T:{}, R:{}, P:{}, S:{}) {}",
c->index + 1, colour, company_name,
c->inaugurated_year, (int64_t)c->money, (int64_t)c->current_loan, (int64_t)CalculateCompanyValue(c),
c->group_all[VEH_TRAIN].num_vehicle,
c->group_all[VEH_ROAD].num_vehicle,
c->group_all[VEH_AIRCRAFT].num_vehicle,
c->group_all[VEH_SHIP].num_vehicle,
c->group_all[VehicleType::Train].num_vehicle,
c->group_all[VehicleType::Road].num_vehicle,
c->group_all[VehicleType::Aircraft].num_vehicle,
c->group_all[VehicleType::Ship].num_vehicle,
c->is_ai ? "AI" : "");
}