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

Function IsObjectTypeTile

src/object_map.h:36–39  ·  view source on GitHub ↗

* Check whether a tile is a object tile of a specific type. * @param t Tile to test. * @param type Type to test. * @return True if type matches. */

Source from the content-addressed store, hash-verified

34 * @return True if type matches.
35 */
36inline bool IsObjectTypeTile(Tile t, ObjectType type)
37{
38 return IsTileType(t, MP_OBJECT) && GetObjectType(t) == type;
39}
40
41/**
42 * Get the index of which object this tile is attached to.

Callers 2

TryBuildLightHouseFunction · 0.85
TryBuildTransmitterFunction · 0.85

Calls 2

IsTileTypeFunction · 0.85
GetObjectTypeFunction · 0.85

Tested by

no test coverage detected