mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix #941
This commit is contained in:
parent
1444cc12db
commit
6a47777497
@ -96,6 +96,12 @@ namespace NewHorizons.Builder.Body
|
||||
// We want to take the largest size I think
|
||||
var realSize = body.Config.Base.surfaceSize;
|
||||
|
||||
if (realSize <= 0)
|
||||
{
|
||||
// #941 handle proxy body edge case when all scales = 0
|
||||
realSize = 1;
|
||||
}
|
||||
|
||||
if (body.Config.HeightMap != null)
|
||||
{
|
||||
HeightMapBuilder.Make(proxy, null, body.Config.HeightMap, body.Mod, 20);
|
||||
|
||||
2
NewHorizons/External/Modules/BaseModule.cs
vendored
2
NewHorizons/External/Modules/BaseModule.cs
vendored
@ -58,6 +58,8 @@ namespace NewHorizons.External.Modules
|
||||
|
||||
/// <summary>
|
||||
/// A scale height used for a number of things. Should be the approximate radius of the body.
|
||||
///
|
||||
/// Affected settings include: Base sector size, proxy body scaling, surface gravity
|
||||
/// </summary>
|
||||
public float surfaceSize;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user