road.h
changeset 3070 512f72481fd9
parent 3069 0e6aca11c3da
child 3099 374e275300e3
equal deleted inserted replaced
3069:0e6aca11c3da 3070:512f72481fd9
    18 static inline RoadBits GetRoadBits(TileIndex tile)
    18 static inline RoadBits GetRoadBits(TileIndex tile)
    19 {
    19 {
    20 	return GB(_m[tile].m5, 0, 4);
    20 	return GB(_m[tile].m5, 0, 4);
    21 }
    21 }
    22 
    22 
       
    23 static inline RoadBits GetCrossingRoadBits(TileIndex tile)
       
    24 {
       
    25 	return _m[tile].m5 & 8 ? ROAD_Y : ROAD_X;
       
    26 }
       
    27 
    23 typedef enum RoadType {
    28 typedef enum RoadType {
    24 	ROAD_NORMAL,
    29 	ROAD_NORMAL,
    25 	ROAD_CROSSING,
    30 	ROAD_CROSSING,
    26 	ROAD_DEPOT
    31 	ROAD_DEPOT
    27 } RoadType;
    32 } RoadType;