| Old revision #padmgkfwe | New revision #pj4zarksi | ||
|---|---|---|---|
| 1 | static inline RoadTypeIdentifier GetRoadTypeRoad(TileIndex t) | 1 | static inline RoadTypeIdentifier GetRoadTypeRoad(TileIndex t) |
| 2 | { | 2 | { |
| 3 | return RoadTypeIdentifier( | 3 | return RoadTypeIdentifier(ROADTYPE_ROAD, (RoadSubType)GB(_m[t].m4, 0, 4)); |
| 4 | } | 4 | } |
| 5 | 5 | ||
| 6 | static inline RoadTypeIdentifier GetRoadTypeTram(TileIndex t) | 6 | static inline RoadTypeIdentifier GetRoadTypeTram(TileIndex t) |
| 7 | { | 7 | { |
| 8 | return RoadTypeIdentifier( | 8 | return RoadTypeIdentifier(ROADTYPE_TRAM, (RoadSubType)GB(_m[t].m4, 4, 4)); |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | /**********************/ | 11 | /**********************/ |