equal
deleted
inserted
replaced
52 * @param rts the roadtypes to check for validness |
52 * @param rts the roadtypes to check for validness |
53 * @return true if and only if valid |
53 * @return true if and only if valid |
54 */ |
54 */ |
55 static inline bool AreValidRoadTypes(RoadTypes rts) |
55 static inline bool AreValidRoadTypes(RoadTypes rts) |
56 { |
56 { |
57 return HASBIT(rts, ROADTYPE_ROAD) || HASBIT(rts, ROADTYPE_TRAM); |
57 return HasBit(rts, ROADTYPE_ROAD) || HasBit(rts, ROADTYPE_TRAM); |
58 } |
58 } |
59 |
59 |
60 /** |
60 /** |
61 * Maps a RoadType to the corresponding RoadTypes value |
61 * Maps a RoadType to the corresponding RoadTypes value |
62 * |
62 * |