src/road.h
changeset 7928 63e18de69e50
parent 7641 3a75903fd892
equal deleted inserted replaced
7927:3a3289a049f9 7928:63e18de69e50
    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  *