* Get the base pylon sprite to use. */
| 185 | * Get the base pylon sprite to use. |
| 186 | */ |
| 187 | static inline SpriteID GetPylonBase(TileIndex tile, TileContext context = TCX_NORMAL) |
| 188 | { |
| 189 | const RailTypeInfo *rti = GetRailTypeInfo(GetRailType(tile)); |
| 190 | SpriteID pylons = GetCustomRailSprite(rti, tile, RTSG_PYLONS, context); |
| 191 | return pylons == 0 ? SPR_PYLON_BASE : pylons; |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * Corrects the tileh for certain tile types. Returns an effective tileh for the track on the tile. |
no test coverage detected