Loading

Revision differences

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