Codechange: make RailVehicleType a scoped enum (#15576)

This commit is contained in:
Peter Nelson
2026-05-04 22:58:05 +01:00
committed by GitHub
parent f1fd17be8f
commit a7a025623e
14 changed files with 59 additions and 59 deletions
+2 -2
View File
@@ -145,7 +145,7 @@ RailTypes GetCompanyRailTypes(CompanyID company, bool introduces)
(e->company_avail.Test(company) || TimerGameCalendar::date >= e->intro_date + CalendarTime::DAYS_IN_YEAR)) {
const RailVehicleInfo *rvi = &e->VehInfo<RailVehicleInfo>();
if (rvi->railveh_type != RAILVEH_WAGON) {
if (rvi->railveh_type != RailVehicleType::Wagon) {
assert(rvi->railtypes.Any());
if (introduces) {
rts.Set(GetAllIntroducesRailTypes(rvi->railtypes));
@@ -174,7 +174,7 @@ RailTypes GetRailTypes(bool introduces)
if (!ei->climates.Test(_settings_game.game_creation.landscape)) continue;
const RailVehicleInfo *rvi = &e->VehInfo<RailVehicleInfo>();
if (rvi->railveh_type != RAILVEH_WAGON) {
if (rvi->railveh_type != RailVehicleType::Wagon) {
assert(rvi->railtypes.Any());
if (introduces) {
rts.Set(GetAllIntroducesRailTypes(rvi->railtypes));