(svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile()

This commit is contained in:
smatz
2008-04-17 00:44:20 +00:00
parent 61074c4bf8
commit 966e476df8
20 changed files with 70 additions and 65 deletions

View File

@@ -96,6 +96,11 @@ static inline TileIndex IsShipDepot(TileIndex t)
return IsInsideMM(_m[t].m5, DEPOT_NORTH, DEPOT_END);
}
static inline TileIndex IsShipDepotTile(TileIndex t)
{
return IsTileType(t, MP_WATER) && IsShipDepot(t);
}
static inline Axis GetShipDepotAxis(TileIndex t)
{
return (Axis)GB(_m[t].m5, 1, 1);