(svn r8514) -Codechange: Turn IsBuoy into a method of stations
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user