MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetOtherBridgeEnd

Function GetOtherBridgeEnd

src/bridge_map.cpp:59–63  ·  view source on GitHub ↗

* Starting at one bridge end finds the other bridge end * @param tile the bridge ramp tile to find the other bridge ramp for */

Source from the content-addressed store, hash-verified

57 * @param tile the bridge ramp tile to find the other bridge ramp for
58 */
59TileIndex GetOtherBridgeEnd(TileIndex tile)
60{
61 assert(IsBridgeTile(tile));
62 return GetBridgeEnd(tile, GetTunnelBridgeDirection(tile));
63}
64
65/**
66 * Get the height ('z') of a bridge.

Callers 9

FloodVehiclesFunction · 0.85
CmdBuildBridgeFunction · 0.85
DoClearBridgeFunction · 0.85
GetOtherTunnelBridgeEndFunction · 0.85
DrawRailCatenaryOnBridgeFunction · 0.85
GetOtherBridgeEndMethod · 0.85
FollowTileExitMethod · 0.85

Calls 3

IsBridgeTileFunction · 0.85
GetBridgeEndFunction · 0.85
GetTunnelBridgeDirectionFunction · 0.85

Tested by

no test coverage detected