Codechange: switch our codebase to C++20

This commit is contained in:
Patric Stout
2024-01-16 20:38:42 +01:00
committed by Patric Stout
parent fd59393899
commit bb49112784
11 changed files with 18 additions and 18 deletions

View File

@@ -203,7 +203,7 @@ template<bool Tfrom, bool Tvia>
if (!IsValidStation(station_id)) return false;
if (!HasExactlyOneBit(station_type)) return false;
return (::Station::Get(station_id)->facilities & station_type) != 0;
return (::Station::Get(station_id)->facilities & static_cast<StationFacility>(station_type)) != 0;
}
/* static */ bool ScriptStation::HasRoadType(StationID station_id, ScriptRoad::RoadType road_type)