summaryrefslogtreecommitdiff
path: root/src/rail_type.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-22 07:39:52 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commit931d32f4145e36ef08b432314353ff9f058f6a08 (patch)
tree7503cca488e8d3453adeb0e69fc51a609649f1a0 /src/rail_type.h
parent10ba431d21f58c707398f95b99faf3c2aac77e77 (diff)
downloadopenttd-931d32f4145e36ef08b432314353ff9f058f6a08.tar.xz
Codechange: Remove RailTypeByte type
Diffstat (limited to 'src/rail_type.h')
-rw-r--r--src/rail_type.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rail_type.h b/src/rail_type.h
index 2bd602a37..7e465866c 100644
--- a/src/rail_type.h
+++ b/src/rail_type.h
@@ -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.