src/industry_map.h
branchNewGRF_ports
changeset 6868 7eb395287b3d
parent 6743 cabfaa4a0295
child 6870 ca3fd1fbe311
equal deleted inserted replaced
6867:a4ad48192617 6868:7eb395287b3d
    46 	GFX_PLASTIC_FOUNTAIN_ANIMATED_8    = 155,
    46 	GFX_PLASTIC_FOUNTAIN_ANIMATED_8    = 155,
    47 	GFX_BUBBLE_GENERATOR               = 161,
    47 	GFX_BUBBLE_GENERATOR               = 161,
    48 	GFX_BUBBLE_CATCHER                 = 162,
    48 	GFX_BUBBLE_CATCHER                 = 162,
    49 	GFX_TOFFEE_QUARY                   = 165,
    49 	GFX_TOFFEE_QUARY                   = 165,
    50 	GFX_SUGAR_MINE_SIEVE               = 174,
    50 	GFX_SUGAR_MINE_SIEVE               = 174,
       
    51 	GFX_WATERTILE_SPECIALCHECK         = 255,  ///< not really a tile, but rather a very special check
    51 };
    52 };
    52 
    53 
    53 /**
    54 /**
    54  * Get the industry ID of the given tile
    55  * Get the industry ID of the given tile
    55  * @param t the tile to get the industry ID from
    56  * @param t the tile to get the industry ID from
   130  * @return the gfx ID
   131  * @return the gfx ID
   131  */
   132  */
   132 static inline IndustryGfx GetIndustryGfx(TileIndex t)
   133 static inline IndustryGfx GetIndustryGfx(TileIndex t)
   133 {
   134 {
   134 	assert(IsTileType(t, MP_INDUSTRY));
   135 	assert(IsTileType(t, MP_INDUSTRY));
   135 	return _m[t].m5;
   136 	return GetTranslatedIndustryTileID(_m[t].m5 | (GB(_m[t].m6, 2, 1) << 8));
   136 }
   137 }
   137 
   138 
   138 /**
   139 /**
   139  * Set the industry graphics ID for the given industry tile
   140  * Set the industry graphics ID for the given industry tile
   140  * @param t   the tile to set the gfx for
   141  * @param t   the tile to set the gfx for