* Get the base wire sprite to use. */
| 175 | * Get the base wire sprite to use. |
| 176 | */ |
| 177 | static inline SpriteID GetWireBase(TileIndex tile, TileContext context = TCX_NORMAL) |
| 178 | { |
| 179 | const RailTypeInfo *rti = GetRailTypeInfo(GetRailType(tile)); |
| 180 | SpriteID wires = GetCustomRailSprite(rti, tile, RTSG_WIRES, context); |
| 181 | return wires == 0 ? SPR_WIRE_BASE : wires; |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Get the base pylon sprite to use. |
no test coverage detected