Fix heightmap stretch on title screen

This commit is contained in:
Noah Pilarski 2022-06-28 02:24:43 -04:00
parent 0354a3081c
commit 822cdecce9

View File

@ -87,6 +87,7 @@ namespace NewHorizons.Handlers
heightMap.heightMap = body.Config.HeightMap.heightMap; heightMap.heightMap = body.Config.HeightMap.heightMap;
heightMap.maxHeight = size; heightMap.maxHeight = size;
heightMap.minHeight = body.Config.HeightMap.minHeight * size / body.Config.HeightMap.maxHeight; heightMap.minHeight = body.Config.HeightMap.minHeight * size / body.Config.HeightMap.maxHeight;
heightMap.stretch = body.Config.HeightMap.stretch;
} }
if (body.Config.Atmosphere?.clouds?.texturePath != null) if (body.Config.Atmosphere?.clouds?.texturePath != null)
{ {