Codefix 75387b9e2b: Prefer using EnumBitSet.base() instead of shifting StationFacility. (#13575)
This commit is contained in:
@@ -41,8 +41,8 @@ public:
|
||||
*/
|
||||
enum WaypointType {
|
||||
/* Note: these values represent part of the in-game StationFacilities enum */
|
||||
WAYPOINT_RAIL = (1U << to_underlying(::StationFacility::Train)), ///< Rail waypoint
|
||||
WAYPOINT_BUOY = (1U << to_underlying(::StationFacility::Dock)), ///< Buoy
|
||||
WAYPOINT_RAIL = ::StationFacilities{::StationFacility::Train}.base(), ///< Rail waypoint
|
||||
WAYPOINT_BUOY = ::StationFacilities{::StationFacility::Dock}.base(), ///< Buoy
|
||||
WAYPOINT_ANY = WAYPOINT_RAIL | WAYPOINT_BUOY, ///< All waypoint types
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user