src/water_map.h
branchnoai
changeset 9722 ebf0ece7d8f6
parent 9718 f82a4facea8b
child 8450 dce58137301f
child 9723 eee46cb39750
equal deleted inserted replaced
9721:9a27928bcd5e 9722:ebf0ece7d8f6
    65 	return IsTileType(t, MP_WATER) && IsWater(t);
    65 	return IsTileType(t, MP_WATER) && IsWater(t);
    66 }
    66 }
    67 
    67 
    68 static inline TileIndex GetOtherShipDepotTile(TileIndex t)
    68 static inline TileIndex GetOtherShipDepotTile(TileIndex t)
    69 {
    69 {
    70 	return t + (HASBIT(_m[t].m5, 0) ? -1 : 1) * (HASBIT(_m[t].m5, 1) ? TileDiffXY(0, 1) : TileDiffXY(1, 0));
    70 	return t + (HasBit(_m[t].m5, 0) ? -1 : 1) * (HasBit(_m[t].m5, 1) ? TileDiffXY(0, 1) : TileDiffXY(1, 0));
    71 }
    71 }
    72 
    72 
    73 static inline TileIndex IsShipDepot(TileIndex t)
    73 static inline TileIndex IsShipDepot(TileIndex t)
    74 {
    74 {
    75 	return IS_INT_INSIDE(_m[t].m5, DEPOT_NORTH, DEPOT_END);
    75 	return IS_INT_INSIDE(_m[t].m5, DEPOT_NORTH, DEPOT_END);