changeset 8954 | 3993bae3bfb8 |
parent 8495 | 35c77bdca32a |
child 8966 | 511e7f1bc564 |
--- 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);