Skip to content

Commit

Permalink
Merge pull request #35 from ChrisAdderley/dev
Browse files Browse the repository at this point in the history
Fix antenna destroyed NRE
  • Loading branch information
ChrisAdderley authored Aug 3, 2020
2 parents 26dc591 + 2478fc1 commit 378fb67
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
Binary file modified GameData/NearFutureExploration/Plugins/NearFutureExploration.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"MAJOR":1,
"MINOR":0,
"PATCH":9,
"PATCH":10,
"BUILD":0
},
"KSP_VERSION":
Expand Down
11 changes: 7 additions & 4 deletions Source/ModuleAntennaFeed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,13 @@ void FixedUpdate()
Fields["StatusString"].guiActiveEditor = false;
Fields["TargetString"].guiActiveEditor = false;
}
if (lineRenderable)
renderedLine.SetVisibility(true);
renderedLine.AdjustSize(30f);
renderedLine.SetColor(badColor);
if (HighLogic.LoadedSceneIsEditor)
{
if (lineRenderable)
renderedLine.SetVisibility(true);
renderedLine.AdjustSize(30f);
renderedLine.SetColor(badColor);
}
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions Source/VisualDebug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ public DebugLine(float size, Color color)

public void AdjustSize(float size)
{
axis.SetPosition(0, Vector3.zero);
axis.SetPosition(1, Vector3.forward * size);
if (axis.positionCount > 0)
axis.SetPosition(0, Vector3.zero);
if (axis.positionCount > 1)
axis.SetPosition(1, Vector3.forward * size);
}
public void Destroy()
{
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.0.10
-------
- Fixed an issue where broken antennas would cause NREs

v1.0.9
------
- Marked compatible for KSP 1.10+
Expand Down
6 changes: 3 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
==============================
Near Future Exploration v1.0.9
==============================
===============================
Near Future Exploration v1.0.10
===============================

A set of parts to help enhance and improve the KSP probe experience, particularly in the later game with larger probes

Expand Down

0 comments on commit 378fb67

Please sign in to comment.