* Set rail station tile flags for the given tile. * @param tile Tile to set flags on. * @param statspec Statspec of the tile. */
| 1414 | * @param statspec Statspec of the tile. |
| 1415 | */ |
| 1416 | void SetRailStationTileFlags(TileIndex tile, const StationSpec *statspec) |
| 1417 | { |
| 1418 | const auto flags = GetStationTileFlags(GetStationGfx(tile), statspec); |
| 1419 | SetStationTileBlocked(tile, flags.Test(StationSpec::TileFlag::Blocked)); |
| 1420 | SetStationTileHavePylons(tile, flags.Test(StationSpec::TileFlag::Pylons)); |
| 1421 | SetStationTileHaveWires(tile, !flags.Test(StationSpec::TileFlag::NoWires)); |
| 1422 | } |
| 1423 | |
| 1424 | /** |
| 1425 | * Build rail station |
no test coverage detected