* Get station tile flags for the given StationGfx. * @param gfx StationGfx of station tile. * @param statspec Station spec of station tile. * @return Tile flags to apply. */
| 1402 | * @return Tile flags to apply. |
| 1403 | */ |
| 1404 | static StationSpec::TileFlags GetStationTileFlags(StationGfx gfx, const StationSpec *statspec) |
| 1405 | { |
| 1406 | /* Default stations do not draw pylons under roofs (gfx >= 4) */ |
| 1407 | if (statspec == nullptr || gfx >= statspec->tileflags.size()) return gfx < 4 ? StationSpec::TileFlag::Pylons : StationSpec::TileFlags{}; |
| 1408 | return statspec->tileflags[gfx]; |
| 1409 | } |
| 1410 | |
| 1411 | /** |
| 1412 | * Set rail station tile flags for the given tile. |
no test coverage detected