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

Function SetHouseRandomBits

src/town_map.h:284–288  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

282 * @pre IsTileType(t, MP_HOUSE)
283 */
284inline void SetHouseRandomBits(Tile t, uint8_t random)
285{
286 assert(IsTileType(t, MP_HOUSE));
287 t.m1() = random;
288}
289
290/**
291 * Get the random bits for this house.

Callers 1

Calls 1

IsTileTypeFunction · 0.85

Tested by

no test coverage detected