summaryrefslogtreecommitdiff
path: root/src/town_map.h
diff options
context:
space:
mode:
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