Codechange: Remove RailTypeByte type

This commit is contained in:
Charles Pigott
2019-04-22 07:39:52 +01:00
committed by PeterN
parent 10ba431d21
commit 931d32f414
8 changed files with 10 additions and 10 deletions

View File

@@ -26,7 +26,7 @@ static const RailTypeLabel RAILTYPE_MAGLEV_LABEL = 'MGLV';
*
* This enumeration defines all 4 possible railtypes.
*/
enum RailType {
enum RailType : byte {
RAILTYPE_BEGIN = 0, ///< Used for iterations
RAILTYPE_RAIL = 0, ///< Standard non-electric rails
RAILTYPE_ELECTRIC = 1, ///< Electric rails
@@ -44,7 +44,6 @@ enum RailType {
DECLARE_POSTFIX_INCREMENT(RailType)
/** Define basic enum properties */
template <> struct EnumPropsT<RailType> : MakeEnumPropsT<RailType, byte, RAILTYPE_BEGIN, RAILTYPE_END, INVALID_RAILTYPE, 6> {};
typedef TinyEnumT<RailType> RailTypeByte;
/**
* The different railtypes we support, but then a bitmask of them.