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

Method DistanceFromEdge

src/script/api/script_map.cpp:71–75  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

69}
70
71/* static */ SQInteger ScriptMap::DistanceFromEdge(TileIndex t)
72{
73 if (!::IsValidTile(t)) return -1;
74 return ::DistanceFromEdge(t);
75}

Callers

nothing calls this directly

Calls 2

IsValidTileFunction · 0.85
DistanceFromEdgeFunction · 0.85

Tested by

no test coverage detected