Mercurial > hg > openttd
diff src/town_map.h @ 7861:6986bc3b90e4 draft
(svn r11411) -Codechange: implement random triggers for houses.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 11 Nov 2007 17:58:05 +0000 |
parents | fba35a9abf79 |
children | ff1975ced735 |
line wrap: on
line diff
--- a/src/town_map.h +++ b/src/town_map.h @@ -300,6 +300,19 @@ } /** + * 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) + */ +static inline void SetHouseRandomBits(TileIndex t, byte random) +{ + assert(IsTileType(t, MP_HOUSE)); + _m[t].m1 = random; +} + +/** * Get the random bits for this house. * This is required for newgrf house * @param t the tile of this house