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

Function GetHouseRandomTriggers

src/town_map.h:323–327  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

321 * @return triggers
322 */
323inline HouseRandomTriggers GetHouseRandomTriggers(Tile t)
324{
325 assert(IsTileType(t, MP_HOUSE));
326 return static_cast<HouseRandomTriggers>(GB(t.m3(), 0, 5));
327}
328
329/**
330 * Get the amount of time remaining before the tile loop processes this tile.

Callers 2

GetRandomTriggersMethod · 0.85

Calls 2

IsTileTypeFunction · 0.85
GBFunction · 0.85

Tested by

no test coverage detected