src/station_map.h
changeset 10228 2de09b30921a
parent 9784 a9cc0dff1667
child 10260 c6ec6b3c1b18
equal deleted inserted replaced
10227:2119781291ba 10228:2de09b30921a
   163 static inline bool IsDock(TileIndex t)
   163 static inline bool IsDock(TileIndex t)
   164 {
   164 {
   165 	return GetStationType(t) == STATION_DOCK;
   165 	return GetStationType(t) == STATION_DOCK;
   166 }
   166 }
   167 
   167 
       
   168 static inline bool IsDockTile(TileIndex t)
       
   169 {
       
   170 	return IsTileType(t, MP_STATION) && GetStationType(t) == STATION_DOCK;
       
   171 }
       
   172 
   168 static inline bool IsBuoy(TileIndex t)
   173 static inline bool IsBuoy(TileIndex t)
   169 {
   174 {
   170 	return GetStationType(t) == STATION_BUOY;
   175 	return GetStationType(t) == STATION_BUOY;
   171 }
   176 }
   172 
   177