mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Double min height instead
This commit is contained in:
parent
53d5ce14f5
commit
d3eff8ce2a
@ -124,7 +124,6 @@ namespace NewHorizons.Builder.Atmosphere
|
||||
|
||||
private static (float, float) GetDefaultHeightRange(PlanetConfig config)
|
||||
{
|
||||
// Determining default values for min/max height
|
||||
var minHeight = 0f;
|
||||
|
||||
if (config.HeightMap?.minHeight != null)
|
||||
@ -146,6 +145,7 @@ namespace NewHorizons.Builder.Atmosphere
|
||||
}
|
||||
|
||||
var maxHeight = 100f;
|
||||
|
||||
if (config.Atmosphere != null)
|
||||
{
|
||||
if (config.Atmosphere.clouds?.outerCloudRadius != null)
|
||||
@ -157,9 +157,9 @@ namespace NewHorizons.Builder.Atmosphere
|
||||
maxHeight = config.Atmosphere.size;
|
||||
}
|
||||
}
|
||||
else if (config.Base != null)
|
||||
else if (minHeight != 0f)
|
||||
{
|
||||
maxHeight = config.Base.surfaceSize * 2f;
|
||||
maxHeight = minHeight * 2f;
|
||||
}
|
||||
|
||||
return (minHeight, maxHeight);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user