mirror of https://github.com/OpenTTD/OpenTTD.git
Codechange: Remove RoadTypesByte
This commit is contained in:
parent
644f4c3547
commit
e18c8c30be
|
@ -33,7 +33,7 @@ template <> struct EnumPropsT<RoadType> : MakeEnumPropsT<RoadType, byte, ROADTYP
|
||||||
* The different roadtypes we support, but then a bitmask of them
|
* The different roadtypes we support, but then a bitmask of them
|
||||||
* @note currently only roadtypes with ROADTYPE_ROAD and ROADTYPE_TRAM are supported.
|
* @note currently only roadtypes with ROADTYPE_ROAD and ROADTYPE_TRAM are supported.
|
||||||
*/
|
*/
|
||||||
enum RoadTypes {
|
enum RoadTypes : byte {
|
||||||
ROADTYPES_NONE = 0, ///< No roadtypes
|
ROADTYPES_NONE = 0, ///< No roadtypes
|
||||||
ROADTYPES_ROAD = 1 << ROADTYPE_ROAD, ///< Road
|
ROADTYPES_ROAD = 1 << ROADTYPE_ROAD, ///< Road
|
||||||
ROADTYPES_TRAM = 1 << ROADTYPE_TRAM, ///< Trams
|
ROADTYPES_TRAM = 1 << ROADTYPE_TRAM, ///< Trams
|
||||||
|
@ -43,7 +43,6 @@ enum RoadTypes {
|
||||||
};
|
};
|
||||||
DECLARE_ENUM_AS_BIT_SET(RoadTypes)
|
DECLARE_ENUM_AS_BIT_SET(RoadTypes)
|
||||||
template <> struct EnumPropsT<RoadTypes> : MakeEnumPropsT<RoadTypes, byte, ROADTYPES_NONE, ROADTYPES_END, INVALID_ROADTYPES, 2> {};
|
template <> struct EnumPropsT<RoadTypes> : MakeEnumPropsT<RoadTypes, byte, ROADTYPES_NONE, ROADTYPES_END, INVALID_ROADTYPES, 2> {};
|
||||||
typedef SimpleTinyEnumT<RoadTypes, byte> RoadTypesByte;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue