(svn r20631) -Codechange: generalise IsIndustryTileOnWater + simplify so related code
This commit is contained in:
@@ -156,17 +156,6 @@ static inline void SetIndustryGfx(TileIndex t, IndustryGfx gfx)
|
||||
SB(_m[t].m6, 2, 1, GB(gfx, 8, 1));
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests if the industry tile was built on water.
|
||||
* @param t the industry tile
|
||||
* @return true iff on water
|
||||
*/
|
||||
static inline bool IsIndustryTileOnWater(TileIndex t)
|
||||
{
|
||||
assert(IsTileType(t, MP_INDUSTRY));
|
||||
return (GetWaterClass(t) != WATER_CLASS_INVALID);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns this indutry tile's construction counter value
|
||||
* @param tile the tile to query
|
||||
|
Reference in New Issue
Block a user