* Return the RoadBits of a tile, ignoring depot and bay road stops. * @param tile The tile to check. * @return The roadbits of the given tile. */
| 952 | * @return The roadbits of the given tile. |
| 953 | */ |
| 954 | static RoadBits GetTownRoadBits(TileIndex tile) |
| 955 | { |
| 956 | if (IsRoadDepotTile(tile) || IsBayRoadStopTile(tile)) return ROAD_NONE; |
| 957 | |
| 958 | return GetAnyRoadBits(tile, RTT_ROAD, true); |
| 959 | } |
| 960 | |
| 961 | /** |
| 962 | * Get the road type that towns should build at this current moment. |
no test coverage detected