diff src/station.cpp @ 5896:f4881d5663d1 draft

(svn r8514) -Codechange: Turn IsBuoy into a method of stations
author celestar <celestar@openttd.org>
date Thu, 01 Feb 2007 16:48:38 +0000
parents 0f2d3b2a5f01
children deb7a3ce0bca
line wrap: on
line diff
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -179,6 +179,14 @@
 }
 
 
+/** 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                       */