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

Method GetBridgeType

src/script/api/script_bridge.cpp:36–40  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

34}
35
36/* static */ BridgeType ScriptBridge::GetBridgeType(TileIndex tile)
37{
38 if (!IsBridgeTile(tile)) return (BridgeType)-1;
39 return (BridgeType)::GetBridgeType(tile);
40}
41
42/**
43 * Helper function to connect a just built bridge to nearby roads.

Callers

nothing calls this directly

Calls 2

IsBridgeTileFunction · 0.85
GetBridgeTypeFunction · 0.85

Tested by

no test coverage detected