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

Function SetHouseRandomTriggers

src/town_map.h:310–314  ·  view source on GitHub ↗

* Set the activated triggers bits for this house. * This is required for newgrf house * @param t the tile of this house * @param triggers the activated triggers * @pre IsTileType(t, MP_HOUSE) */

Source from the content-addressed store, hash-verified

308 * @pre IsTileType(t, MP_HOUSE)
309 */
310inline void SetHouseRandomTriggers(Tile t, HouseRandomTriggers triggers)
311{
312 assert(IsTileType(t, MP_HOUSE));
313 SB(t.m3(), 0, 5, triggers.base());
314}
315
316/**
317 * Get the already activated triggers bits for this house.

Callers 1

Calls 3

IsTileTypeFunction · 0.85
SBFunction · 0.85
baseMethod · 0.45

Tested by

no test coverage detected