src/industry_map.h
changeset 7963 e04dbb203f3e
parent 7814 fe643468ad64
child 7969 9050701304bd
equal deleted inserted replaced
7962:54ba9c69612d 7963:e04dbb203f3e
   130  * @return the gfx ID
   130  * @return the gfx ID
   131  */
   131  */
   132 static inline IndustryGfx GetIndustryGfx(TileIndex t)
   132 static inline IndustryGfx GetIndustryGfx(TileIndex t)
   133 {
   133 {
   134 	assert(IsTileType(t, MP_INDUSTRY));
   134 	assert(IsTileType(t, MP_INDUSTRY));
   135 	return _m[t].m5;
   135 	return GetTranslatedIndustryTileID(_m[t].m5 | (GB(_m[t].m6, 2, 1) << 8));
   136 }
   136 }
   137 
   137 
   138 /**
   138 /**
   139  * Set the industry graphics ID for the given industry tile
   139  * Set the industry graphics ID for the given industry tile
   140  * @param t   the tile to set the gfx for
   140  * @param t   the tile to set the gfx for