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

Method IsHangarTile

src/script/api/script_airport.cpp:38–43  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

36}
37
38/* static */ bool ScriptAirport::IsHangarTile(TileIndex tile)
39{
40 if (!::IsValidTile(tile)) return false;
41
42 return ::IsTileType(tile, MP_STATION) && ::IsHangar(tile);
43}
44
45/* static */ bool ScriptAirport::IsAirportTile(TileIndex tile)
46{

Callers

nothing calls this directly

Calls 3

IsValidTileFunction · 0.85
IsTileTypeFunction · 0.85
IsHangarFunction · 0.85

Tested by

no test coverage detected