From 2d2e1e386315db0c83f508c19387e9f2e0c9cee1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 9 Jan 2008 21:05:03 +0000 Subject: (svn r11800) -Codechange: move some functions to a more logical location + some type safety. --- src/road_type.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/road_type.h') diff --git a/src/road_type.h b/src/road_type.h index 36c01eec6..407ab894b 100644 --- a/src/road_type.h +++ b/src/road_type.h @@ -34,8 +34,12 @@ enum RoadTypes { ROADTYPES_ROADHWAY = ROADTYPES_ROAD | ROADTYPES_HWAY, ///< Road + highway (or whatever substitute) ROADTYPES_TRAMHWAY = ROADTYPES_TRAM | ROADTYPES_HWAY, ///< Trams + highway (or whatever substitute) ROADTYPES_ALL = ROADTYPES_ROAD | ROADTYPES_TRAM | ROADTYPES_HWAY, ///< Road + trams + highway (or whatever substitute) + ROADTYPES_END, ///< Used for iterations? + INVALID_ROADTYPES = 0xFF ///< Invalid roadtypes }; DECLARE_ENUM_AS_BIT_SET(RoadTypes); +template <> struct EnumPropsT : MakeEnumPropsT {}; +typedef TinyEnumT RoadTypesByte; /** -- cgit v1.2.3-54-g00ecf