mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Merge branch 'dev' of https://github.com/xen-42/outer-wilds-new-horizons into dev
This commit is contained in:
commit
5ab573b907
@ -132,7 +132,7 @@ namespace NewHorizons.Builder.Body.Geometry
|
||||
|
||||
float sampleX = heightMap.width * longitude / 360f;
|
||||
float sampleY = heightMap.height * latitude / 180f;
|
||||
if (sampleX > heightMap.width) sampleX -= heightMap.width; // TODO: find out if this actually doesnt anything
|
||||
if (sampleX > heightMap.width) sampleX -= heightMap.width; // TODO: find out if this actually does anything
|
||||
|
||||
float relativeHeight = heightMap.GetPixel((int)sampleX, (int)sampleY).r;
|
||||
|
||||
|
||||
@ -113,7 +113,7 @@ namespace NewHorizons.Handlers
|
||||
Logger.Log("Loading Deferred Bodies");
|
||||
|
||||
// Make a copy of the next pass of bodies so that the array can be edited while we load them
|
||||
toLoad = _nextPassBodies.Select(x => x).ToList();
|
||||
toLoad = _nextPassBodies.ToList();
|
||||
while (_nextPassBodies.Count != 0)
|
||||
{
|
||||
foreach (var body in toLoad)
|
||||
@ -273,7 +273,8 @@ namespace NewHorizons.Handlers
|
||||
foreach (var childObj in transforms.Where(x => x.GetPath() == path))
|
||||
{
|
||||
flag = false;
|
||||
childObj.gameObject.SetActive(false);
|
||||
// idk why we wait here but we do
|
||||
Delay.FireInNUpdates(() => childObj.gameObject.SetActive(false), 2);
|
||||
}
|
||||
|
||||
if (flag) Logger.LogWarning($"Couldn't find \"{childPath}\".");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user