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

Function IsHouseProtected

src/town_map.h:82–86  ·  view source on GitHub ↗

* Check if the house is protected from removal by towns. * @param t The tile. * @return If the house is protected from the town upgrading it. */

Source from the content-addressed store, hash-verified

80 * @return If the house is protected from the town upgrading it.
81 */
82inline bool IsHouseProtected(Tile t)
83{
84 assert(IsTileType(t, MP_HOUSE));
85 return HasBit(t.m3(), 5);
86}
87
88/**
89 * Set a house as protected from removal by towns.

Callers 2

CanDeleteHouseFunction · 0.85
GetTileDesc_TownFunction · 0.85

Calls 2

IsTileTypeFunction · 0.85
HasBitFunction · 0.85

Tested by

no test coverage detected