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

Function SetHouseType

src/town_map.h:71–75  ·  view source on GitHub ↗

* Set the house type. * @param t the tile * @param house_id the new house type * @pre IsTileType(t, MP_HOUSE) */

Source from the content-addressed store, hash-verified

69 * @pre IsTileType(t, MP_HOUSE)
70 */
71inline void SetHouseType(Tile t, HouseID house_id)
72{
73 assert(IsTileType(t, MP_HOUSE));
74 SB(t.m8(), 0, 12, house_id);
75}
76
77/**
78 * Check if the house is protected from removal by towns.

Callers 3

MakeHouseTileFunction · 0.85
AfterLoadGameFunction · 0.85
UpdateHousesAndTownsFunction · 0.85

Calls 2

IsTileTypeFunction · 0.85
SBFunction · 0.85

Tested by

no test coverage detected