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

Function GetNorthernBridgeEnd

src/bridge_map.cpp:39–42  ·  view source on GitHub ↗

* Finds the northern end of a bridge starting at a middle tile * @param t the bridge tile to find the bridge ramp for */

Source from the content-addressed store, hash-verified

37 * @param t the bridge tile to find the bridge ramp for
38 */
39TileIndex GetNorthernBridgeEnd(TileIndex t)
40{
41 return GetBridgeEnd(t, ReverseDiagDir(AxisToDiagDir(GetBridgeAxis(t))));
42}
43
44
45/**

Callers 7

CmdBuildBridgeFunction · 0.85
DrawBridgeMiddleFunction · 0.85
DrawRailCatenaryRailwayFunction · 0.85
DrawRoadTypeCatenaryFunction · 0.85
DrawRoadBitsFunction · 0.85
ViewportAddLandscapeFunction · 0.85
AfterLoadGameFunction · 0.85

Calls 4

GetBridgeEndFunction · 0.85
ReverseDiagDirFunction · 0.85
AxisToDiagDirFunction · 0.85
GetBridgeAxisFunction · 0.85

Tested by

no test coverage detected