forked from mirror/OpenTTD
(svn r16661) -Codechange: move definition of few very short functions to header files
This commit is contained in:
@@ -186,11 +186,6 @@ void Station::MarkTilesDirty(bool cargo_change) const
|
||||
}
|
||||
}
|
||||
|
||||
bool Station::TileBelongsToRailStation(TileIndex tile) const
|
||||
{
|
||||
return IsRailwayStationTile(tile) && GetStationIndex(tile) == this->index;
|
||||
}
|
||||
|
||||
/** Obtain the length of a platform
|
||||
* @pre tile must be a railway station tile
|
||||
* @param tile A tile that contains the platform in question
|
||||
@@ -241,14 +236,6 @@ uint Station::GetPlatformLength(TileIndex tile, DiagDirection dir) const
|
||||
return length;
|
||||
}
|
||||
|
||||
/** Determines whether a station is a buoy only.
|
||||
* @todo Ditch this encoding of buoys
|
||||
*/
|
||||
bool Station::IsBuoy() const
|
||||
{
|
||||
return (had_vehicle_of_type & HVOT_BUOY) != 0;
|
||||
}
|
||||
|
||||
/** Determines the catchment radius of the station
|
||||
* @return The radius
|
||||
*/
|
||||
|
Reference in New Issue
Block a user