diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-04-22 11:14:42 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-04-29 17:40:22 +0100 |
commit | e18c8c30be2bb20271c4c5f65441513b591f416d (patch) | |
tree | fb4797aff2f6dfb6fc6e4e4ddb4ca31a8ffca4d4 /src | |
parent | 644f4c3547a312d53c1014639df3dc2f55ab4de8 (diff) | |
download | openttd-e18c8c30be2bb20271c4c5f65441513b591f416d.tar.xz |
Codechange: Remove RoadTypesByte
Diffstat (limited to 'src')
-rw-r--r-- | src/road_type.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/road_type.h b/src/road_type.h index 5251a5392..7056f6d62 100644 --- a/src/road_type.h +++ b/src/road_type.h @@ -33,7 +33,7 @@ template <> struct EnumPropsT<RoadType> : MakeEnumPropsT<RoadType, byte, ROADTYP * The different roadtypes we support, but then a bitmask of them * @note currently only roadtypes with ROADTYPE_ROAD and ROADTYPE_TRAM are supported. */ -enum RoadTypes { +enum RoadTypes : byte { ROADTYPES_NONE = 0, ///< No roadtypes ROADTYPES_ROAD = 1 << ROADTYPE_ROAD, ///< Road ROADTYPES_TRAM = 1 << ROADTYPE_TRAM, ///< Trams @@ -43,7 +43,6 @@ enum RoadTypes { }; DECLARE_ENUM_AS_BIT_SET(RoadTypes) template <> struct EnumPropsT<RoadTypes> : MakeEnumPropsT<RoadTypes, byte, ROADTYPES_NONE, ROADTYPES_END, INVALID_ROADTYPES, 2> {}; -typedef SimpleTinyEnumT<RoadTypes, byte> RoadTypesByte; /** |