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

Function GetBridgeType

src/bridge_map.h:56–60  ·  view source on GitHub ↗

* Determines the type of bridge on a tile * @param t The tile to analyze * @pre IsBridgeTile(t) * @return The bridge type */

Source from the content-addressed store, hash-verified

54 * @return The bridge type
55 */
56inline BridgeType GetBridgeType(Tile t)
57{
58 assert(IsBridgeTile(t));
59 return GB(t.m6(), 2, 4);
60}
61
62/**
63 * Get the axis of the bridge that goes over the tile. Not the axis or the ramp.

Callers 9

CmdBuildBridgeFunction · 0.85
DrawTile_TunnelBridgeFunction · 0.85
DrawBridgeMiddleFunction · 0.85
GetTileDesc_TunnelBridgeFunction · 0.85
GetCurrentMaxSpeedMethod · 0.85
GetCurrentMaxSpeedMethod · 0.85
GetBridgeTypeMethod · 0.85
GetSpeedLimitMethod · 0.85

Calls 2

IsBridgeTileFunction · 0.85
GBFunction · 0.85

Tested by

no test coverage detected