diff options
author | rubidium <rubidium@openttd.org> | 2007-11-11 17:58:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-11 17:58:05 +0000 |
commit | 9758a765125ff65930eb8ccf96657947b45a785c (patch) | |
tree | 6852036bc3489d0796a507cc83f6f16cd75f86ab /src/town_map.h | |
parent | af5c2a785f11cc6c56813285fe0d1b09369b0acb (diff) | |
download | openttd-9758a765125ff65930eb8ccf96657947b45a785c.tar.xz |
(svn r11411) -Codechange: implement random triggers for houses.
Diffstat (limited to 'src/town_map.h')
-rw-r--r-- | src/town_map.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/town_map.h b/src/town_map.h index 661f39abc..883b33226 100644 --- a/src/town_map.h +++ b/src/town_map.h @@ -300,6 +300,19 @@ static inline Year GetHouseConstructionYear(TileIndex t) } /** + * 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 |