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

Function GetHouseRandomBits

src/town_map.h:297–301  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

295 * @return random bits
296 */
297inline uint8_t GetHouseRandomBits(Tile t)
298{
299 assert(IsTileType(t, MP_HOUSE));
300 return t.m1();
301}
302
303/**
304 * Set the activated triggers bits for this house.

Callers 2

GetRandomBitsMethod · 0.85

Calls 1

IsTileTypeFunction · 0.85

Tested by

no test coverage detected