src/town_map.h
changeset 7861 77e12b5259fe
parent 7370 41adc721b1fa
child 7922 a7e266f966d9
--- a/src/town_map.h	Sun Nov 11 17:56:37 2007 +0000
+++ b/src/town_map.h	Sun Nov 11 17:58:05 2007 +0000
@@ -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