station.h
changeset 2548 97ada3bd2702
parent 2520 75eb66d6e371
child 2617 a9e1a187de99
equal deleted inserted replaced
2547:84930de386a9 2548:97ada3bd2702
   313 static inline bool IsBuoy(const Station* st)
   313 static inline bool IsBuoy(const Station* st)
   314 {
   314 {
   315 	return st->had_vehicle_of_type & HVOT_BUOY; /* XXX: We should really ditch this ugly coding and switch to something sane... */
   315 	return st->had_vehicle_of_type & HVOT_BUOY; /* XXX: We should really ditch this ugly coding and switch to something sane... */
   316 }
   316 }
   317 
   317 
   318 static inline bool IsBuoyTile(TileIndex tile) {
   318 static inline bool IsBuoyTile(TileIndex tile)
       
   319 {
   319 	return IsTileType(tile, MP_STATION) && _m[tile].m5 == 0x52;
   320 	return IsTileType(tile, MP_STATION) && _m[tile].m5 == 0x52;
   320 }
   321 }
   321 
   322 
   322 /* Get's the direction the station exit points towards. Ie, returns 0 for a
   323 /* Get's the direction the station exit points towards. Ie, returns 0 for a
   323  * station with the exit NE. */
   324  * station with the exit NE. */