Procedural-Terrain-Generator icon indicating copy to clipboard operation
Procedural-Terrain-Generator copied to clipboard

BiomeSampler.GetGaussianBlurrableBiomeMap(TerraConfig, GridPosition, int, int)': not all code paths return a value

Open Romelian opened this issue 3 years ago • 0 comments

Hello, the latest commit has some missing code:

Assets\Terra\Source\Terrain\BiomeSampler.cs(173,17): error CS0161: 'BiomeSampler.GetGaussianBlurrableBiomeMap(TerraConfig, GridPosition, int, int)': not all code paths return a value

public int[,] GetGaussianBlurrableBiomeMap(TerraConfig config, GridPosition position, int resolution, int deviation) {
			int[,] biomeMap = GetBiomeMap(config, position, resolution);
			int kernelSize = BlurUtils.GetGaussianKernelSize(deviation);
			int newRes = resolution + kernelSize;
			int[,] blurrableBiomeMap = new int[newRes,newRes];
			
			// Fill in area surrounding the center biome map
		}	

Romelian avatar Sep 08 '21 14:09 Romelian