src/industry_map.h
branchNewGRF_ports
changeset 6720 35756db7e577
parent 6719 4cc327ad39d5
child 6743 cabfaa4a0295
--- a/src/industry_map.h	Sat Jun 02 19:59:29 2007 +0000
+++ b/src/industry_map.h	Sat Jul 14 19:42:58 2007 +0000
@@ -160,7 +160,7 @@
 	_m[t].m2 = index;
 	_m[t].m3 = 0;
 	_m[t].m4 = 0;
-	_m[t].m5 = gfx;
+	SetIndustryGfx(t, gfx);
 }
 
 /**
@@ -246,4 +246,45 @@
 	_m[tile].m3 = state;
 }
 
+/**
+ * Get the random bits for this tile.
+ * Used for grf callbacks
+ * @param tile TileIndex of the tile to query
+ * @pre IsTileType(tile, MP_INDUSTRY)
+ * @return requested bits
+ * @todo implement the storage in map array
+ */
+static inline byte GetIndustryRandomBits(TileIndex tile)
+{
+	assert(IsTileType(tile, MP_INDUSTRY));
+	return 0;
+}
+
+/**
+ * Get the activated triggers bits for this industry tile
+ * Used for grf callbacks
+ * @param tile TileIndex of the tile to query
+ * @pre IsTileType(tile, MP_INDUSTRY)
+ * @return requested triggers
+ * @todo implement the storage in map array
+ */
+static inline byte GetIndustryTriggers(TileIndex tile)
+{
+	assert(IsTileType(tile, MP_INDUSTRY));
+	return 0;
+}
+
+
+/**
+ * Set the activated triggers bits for this industry tile
+ * Used for grf callbacks
+ * @param tile TileIndex of the tile to query
+ * @pre IsTileType(tile, MP_INDUSTRY)
+ * @todo implement the storage in map array
+ */
+static inline void SetIndustryTriggers(TileIndex tile, byte triggers)
+{
+	assert(IsTileType(tile, MP_INDUSTRY));
+}
+
 #endif /* INDUSTRY_MAP_H */