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 | 4d0d6864ee38dd838d5b6717b3409b336eb7fbf9 (patch) | |
tree | 5cfbae0423a54b9a908dcd3d47a2a9c688ba5d8c /src/station.cpp | |
parent | 51db81921c6cd56bfdc7c52b726542a20c19116f (diff) | |
download | openttd-4d0d6864ee38dd838d5b6717b3409b336eb7fbf9.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 */ |