diff options
author | celestar <celestar@openttd.org> | 2007-02-01 16:48:38 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2007-02-01 16:48:38 +0000 |
commit | 5678febfe22b9cee3ae90d8335c7969c76c4a6fb (patch) | |
tree | 5cfbae0423a54b9a908dcd3d47a2a9c688ba5d8c /src/station.cpp | |
parent | 33cadd5043d8ecf82bdeb10efb2d44528e612846 (diff) | |
download | openttd-5678febfe22b9cee3ae90d8335c7969c76c4a6fb.tar.xz |
(svn r8514) -Codechange: Turn IsBuoy into a method of stations
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 */ |