equal
deleted
inserted
replaced
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; |