File diff r23468:75c935eb854b → r23469:ea7f7b26d1dd
src/station_cmd.cpp
Show inline comments
 
@@ -3817,16 +3817,16 @@ static void AddNearbyStationsByCatchment
 
}
 

	
 
/**
 
 * Find all stations around a rectangular producer (industry, house, headquarter, ...)
 
 *
 
 * @param location The location/area of the producer
 
 * @param stations The list to store the stations in
 
 * @param[out] stations The list to store the stations in
 
 * @param use_nearby Use nearby station list of industry/town associated with location.tile
 
 */
 
void FindStationsAroundTiles(const TileArea &location, StationList *stations, bool use_nearby)
 
void FindStationsAroundTiles(const TileArea &location, StationList * const stations, bool use_nearby)
 
{
 
	if (use_nearby) {
 
		/* Industries and towns maintain a list of nearby stations */
 
		if (IsTileType(location.tile, MP_INDUSTRY)) {
 
			/* Industry nearby stations are already filtered by catchment. */
 
			*stations = Industry::GetByTile(location.tile)->stations_near;