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

Function SetHouseProtected

src/town_map.h:93–97  ·  view source on GitHub ↗

* Set a house as protected from removal by towns. * @param t The tile. * @param house_protected Whether the house is protected from the town upgrading it. */

Source from the content-addressed store, hash-verified

91 * @param house_protected Whether the house is protected from the town upgrading it.
92 */
93inline void SetHouseProtected(Tile t, bool house_protected)
94{
95 assert(IsTileType(t, MP_HOUSE));
96 SB(t.m3(), 5, 1, house_protected ? 1 : 0);
97}
98
99/**
100 * Check if the lift of this animated house has a destination

Callers 2

MakeHouseTileFunction · 0.85
AfterLoadGameFunction · 0.85

Calls 2

IsTileTypeFunction · 0.85
SBFunction · 0.85

Tested by

no test coverage detected