From 5678febfe22b9cee3ae90d8335c7969c76c4a6fb Mon Sep 17 00:00:00 2001 From: celestar Date: Thu, 1 Feb 2007 16:48:38 +0000 Subject: (svn r8514) -Codechange: Turn IsBuoy into a method of stations --- src/station.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/station.cpp') diff --git a/src/station.cpp b/src/station.cpp index 7998e49ca..c9dc3a9f7 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -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 */ -- cgit v1.2.3-54-g00ecf