src/station_map.h
changeset 8235 fc75e5ad02b6
parent 7816 207d11ff7fda
child 8424 4a488a90ccab
equal deleted inserted replaced
8234:7147ae98e47d 8235:fc75e5ad02b6
   152 static inline bool IsBuoyTile(TileIndex t)
   152 static inline bool IsBuoyTile(TileIndex t)
   153 {
   153 {
   154 	return IsTileType(t, MP_STATION) && IsBuoy(t);
   154 	return IsTileType(t, MP_STATION) && IsBuoy(t);
   155 }
   155 }
   156 
   156 
       
   157 static inline bool IsCanalBuoyTile(TileIndex t)
       
   158 {
       
   159 	return IsBuoyTile(t) && !IsTileOwner(t, OWNER_WATER);
       
   160 }
       
   161 
       
   162 static inline bool IsSeaBuoyTile(TileIndex t)
       
   163 {
       
   164 	return IsBuoyTile(t) && IsTileOwner(t, OWNER_WATER);
       
   165 }
   157 
   166 
   158 static inline bool IsHangarTile(TileIndex t)
   167 static inline bool IsHangarTile(TileIndex t)
   159 {
   168 {
   160 	return IsTileType(t, MP_STATION) && IsHangar(t);
   169 	return IsTileType(t, MP_STATION) && IsHangar(t);
   161 }
   170 }