summaryrefslogtreecommitdiff
path: root/src/road_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/road_type.h')
-rw-r--r--src/road_type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/road_type.h b/src/road_type.h
index 86ca4de78..be16c2315 100644
--- a/src/road_type.h
+++ b/src/road_type.h
@@ -27,6 +27,7 @@ enum RoadType {
INVALID_ROADTYPE = 0xFF ///< flag for invalid roadtype
};
DECLARE_POSTFIX_INCREMENT(RoadType)
+template <> struct EnumPropsT<RoadType> : MakeEnumPropsT<RoadType, byte, ROADTYPE_BEGIN, ROADTYPE_END, INVALID_ROADTYPE> {};
/**
* The different roadtypes we support, but then a bitmask of them
@@ -67,5 +68,6 @@ enum RoadBits {
ROAD_ALL = ROAD_X | ROAD_Y ///< Full 4-way crossing
};
DECLARE_ENUM_AS_BIT_SET(RoadBits)
+template <> struct EnumPropsT<RoadBits> : MakeEnumPropsT<RoadBits, byte, ROAD_NONE, ROAD_ALL, ROAD_NONE, 4> {};
#endif /* ROAD_TYPE_H */