Mercurial > hg > openttd
changeset 11104:c585f3fa783b draft
(svn r15450) -Codechange: Remove unused RailTypesByte, unused RAILTYPES_... enum values, and change INVALID_RAILTYPES to be UINT_MAX.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Wed, 11 Feb 2009 18:37:13 +0000 |
parents | 5980315ec1f3 |
children | e62b4d827027 |
files | src/rail_type.h |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/rail_type.h +++ b/src/rail_type.h @@ -39,12 +39,8 @@ RAILTYPES_ELECTRIC = 1 << RAILTYPE_ELECTRIC, ///< Electrified rails RAILTYPES_MONO = 1 << RAILTYPE_MONO, ///< Monorail! RAILTYPES_MAGLEV = 1 << RAILTYPE_MAGLEV, ///< Ever fast maglev - RAILTYPES_ALL = RAILTYPES_RAIL | RAILTYPES_ELECTRIC | RAILTYPES_MONO | RAILTYPES_MAGLEV, ///< All of them - RAILTYPES_END, ///< Used for iterations? - INVALID_RAILTYPES = 0xFF ///< Invalid railtypes + INVALID_RAILTYPES = UINT_MAX ///< Invalid railtypes }; DECLARE_ENUM_AS_BIT_SET(RailTypes); -template <> struct EnumPropsT<RailTypes> : MakeEnumPropsT<RailTypes, byte, RAILTYPES_NONE, RAILTYPES_END, INVALID_RAILTYPES> {}; -typedef TinyEnumT<RailTypes> RailTypesByte; #endif /* RAIL_TYPE_H */