Show bridges/tunnels in "Map of world"

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
merni
Engineer
Engineer
Posts: 11
Joined: 22 Mar 2022 15:41

Show bridges/tunnels in "Map of world"

Post by merni »

In the "Map of World" screen where you can see a map of the world, tunnels and bridges don't seem to be displayed. In the case of long tunnels/bridges, this creates an appearance of broken railways/road routes. Could the tunnels/bridges be displayed in the map?
User avatar
jfs
Tycoon
Tycoon
Posts: 1763
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Show bridges/tunnels in "Map of world"

Post by jfs »

"Maybe", the thing is that bridges and tunnels don't really exist in the map data. That is to say, the way the game code handles bridges and tunnels, it only keeps track of where the entrance and exit of each one are, and when a vehicle drives onto a bridge or into a tunnel it enters a special "warping to the other side" state.
The tiles in-between the two ends don't keep track of there being a bridge or tunnel there, so it's a bit more work than you might initially think to display them on the mini map.
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3427
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: Show bridges/tunnels in "Map of world"

Post by Emperor Jake »

JGR's zoomed out minimap shows bridges and tunnels as a dotted line no problem, I don't see why that functionality couldn't be extended to the base game minimap too
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1732
Joined: 30 Mar 2005 09:43

Re: Show bridges/tunnels in "Map of world"

Post by peter1138 »

jfs wrote: 24 May 2023 19:30The tiles in-between the two ends don't keep track of there being a bridge or tunnel there
Oh but they do. Check out IsBridgeAbove().
He's like, some kind of OpenTTD developer.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 34 guests