summaryrefslogtreecommitdiff
path: root/src/town_map.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-11 17:58:05 +0000
committerrubidium <rubidium@openttd.org>2007-11-11 17:58:05 +0000
commit9758a765125ff65930eb8ccf96657947b45a785c (patch)
tree6852036bc3489d0796a507cc83f6f16cd75f86ab /src/town_map.h
parentaf5c2a785f11cc6c56813285fe0d1b09369b0acb (diff)
downloadopenttd-9758a765125ff65930eb8ccf96657947b45a785c.tar.xz
(svn r11411) -Codechange: implement random triggers for houses.
Diffstat (limited to 'src/town_map.h')
-rw-r--r--src/town_map.h13
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