(svn r8514) -Codechange: Turn IsBuoy into a method of stations

This commit is contained in:
celestar
2007-02-01 16:48:38 +00:00
parent 33cadd5043
commit 5678febfe2
5 changed files with 13 additions and 9 deletions

View File

@@ -179,6 +179,14 @@ bool Station::TileBelongsToRailStation(TileIndex tile) const
}
/** Determines whether a station is a buoy only.
* @todo Ditch this encoding of buoys
*/
bool Station::IsBuoy() const
{
return (this->had_vehicle_of_type & HVOT_BUOY) != 0;
}
/************************************************************************/
/* StationRect implementation */