diff options
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |