Codechange: Remove RailTypeByte type
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user