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

Function GetSouthernBridgeEnd

src/bridge_map.cpp:49–52  ·  view source on GitHub ↗

* Finds the southern 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

47 * @param t the bridge tile to find the bridge ramp for
48 */
49TileIndex GetSouthernBridgeEnd(TileIndex t)
50{
51 return GetBridgeEnd(t, AxisToDiagDir(GetBridgeAxis(t)));
52}
53
54
55/**

Callers 9

DoBuildLockFunction · 0.85
DrawBridgeMiddleFunction · 0.85
CmdTerraformLandFunction · 0.85
CmdBuildObjectFunction · 0.85
DrawRailCatenaryOnBridgeFunction · 0.85
IsDockBridgeAboveOkFunction · 0.85
IsBuoyBridgeAboveOkFunction · 0.85

Calls 3

GetBridgeEndFunction · 0.85
AxisToDiagDirFunction · 0.85
GetBridgeAxisFunction · 0.85

Tested by

no test coverage detected