* Get the type of the road tile. * @param t Tile to query. * @pre IsTileType(t, MP_ROAD) * @return The road tile type. */
| 34 | * @return The road tile type. |
| 35 | */ |
| 36 | [[debug_inline]] inline static RoadTileType GetRoadTileType(Tile t) |
| 37 | { |
| 38 | assert(IsTileType(t, MP_ROAD)); |
| 39 | return static_cast<RoadTileType>(GB(t.m5(), 6, 2)); |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Return whether a tile is a normal road. |
no test coverage detected