src/road_map.h
changeset 9230 1c0a7c2ee6e5
parent 9212 3503ffa351b6
child 9240 5f32884581e6
equal deleted inserted replaced
9229:7fa9ce47e9c0 9230:1c0a7c2ee6e5
    63 		case ROADTYPE_TRAM: return (RoadBits)GB(_m[t].m4, 4, 4);
    63 		case ROADTYPE_TRAM: return (RoadBits)GB(_m[t].m4, 4, 4);
    64 		case ROADTYPE_HWAY: return (RoadBits)GB(_m[t].m6, 2, 4);
    64 		case ROADTYPE_HWAY: return (RoadBits)GB(_m[t].m6, 2, 4);
    65 	}
    65 	}
    66 }
    66 }
    67 
    67 
       
    68 /**
       
    69  * Get all set RoadBits on the given tile
       
    70  *
       
    71  * @param tile The tile from which we want to get the RoadBits
       
    72  * @return all set RoadBits of the tile
       
    73  */
    68 static inline RoadBits GetAllRoadBits(TileIndex tile)
    74 static inline RoadBits GetAllRoadBits(TileIndex tile)
    69 {
    75 {
    70 	return GetRoadBits(tile, ROADTYPE_ROAD) | GetRoadBits(tile, ROADTYPE_TRAM) | GetRoadBits(tile, ROADTYPE_HWAY);
    76 	return GetRoadBits(tile, ROADTYPE_ROAD) | GetRoadBits(tile, ROADTYPE_TRAM) | GetRoadBits(tile, ROADTYPE_HWAY);
    71 }
    77 }
    72 
    78