diff -r fea4aa214d9c -r 3993bae3bfb8 src/water_map.h --- a/src/water_map.h Wed Apr 16 21:06:21 2008 +0000 +++ b/src/water_map.h Thu Apr 17 00:44:20 2008 +0000 @@ -96,6 +96,11 @@ 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);