File diff r8572:dcba9a2313b3 → r8573:c66e03190d64
src/station_cmd.cpp
Show inline comments
 
@@ -596,13 +596,13 @@ static void UpdateStationAcceptance(Stat
 
	if (rect.max_x >= rect.min_x) {
 
		GetAcceptanceAroundTiles(
 
			accepts,
 
			TileXY(rect.min_x, rect.min_y),
 
			rect.max_x - rect.min_x + 1,
 
			rect.max_y - rect.min_y + 1,
 
			_patches.modified_catchment ? FindCatchmentRadius(st) : 4
 
			_patches.modified_catchment ? FindCatchmentRadius(st) : CA_UNMODIFIED
 
		);
 
	} else {
 
		memset(accepts, 0, sizeof(accepts));
 
	}
 

	
 
	/* Adjust in case our station only accepts fewer kinds of goods */
 
@@ -2709,13 +2709,13 @@ StationSet FindStationsAroundIndustryTil
 
		max_rad = MAX_CATCHMENT;
 
	} else {
 
		w_prod = 0;
 
		h_prod = 0;
 
		w += 8;
 
		h += 8;
 
		max_rad = 4;
 
		max_rad = CA_UNMODIFIED;
 
	}
 

	
 
	BEGIN_TILE_LOOP(cur_tile, w, h, tile - TileDiffXY(max_rad, max_rad))
 
		cur_tile = TILE_MASK(cur_tile);
 
		if (!IsTileType(cur_tile, MP_STATION)) continue;