Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Roadtype catenary not shown over bridges #7958
Version of OpenTTD
If a road type provides catenary graphics, they should be shown instead of default catenary.
The new catenary graphics are shown on normal tiles but not on bridge tiles. Instead, the default catenary is shown on bridges.
Steps to reproduce
The attached grf defines catenary for ROAD (just a large red square) which shows the behaviour.
I looked at this, and it will require an annoyingly large refactor of DrawRoadTypeCatenary to make it usable for bridge surfaces too.
The part in DrawBridgeRoadBit doesn't seem to have everything ready at least, and several of the parameters to DrawRoadTypeCatenary would have to be synthesized in some way.