mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: make RailVehicleType a scoped enum (#15576)
This commit is contained in:
+2
-2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user