road.h
changeset 3070 980529af506f
parent 3069 9a1fd047b595
child 3099 571719b2cee3
equal deleted inserted replaced
3069:9a1fd047b595 3070:980529af506f
    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;