First pass at storing bestOccludedRelay. BadRelayTracking
[AntennaRange.git] / ModuleLimitedDataTransmitter.cs
blob:a/ModuleLimitedDataTransmitter.cs -> blob:b/ModuleLimitedDataTransmitter.cs
--- a/ModuleLimitedDataTransmitter.cs
+++ b/ModuleLimitedDataTransmitter.cs
@@ -597,7 +597,14 @@
 
 				if (this.KerbinDirect)
 				{
-					this.UIrelayTarget = "Kerbin";
+					if (this.relay.bestOccludedRelay != null)
+					{
+						this.UIrelayTarget = this.relay.bestOccludedRelay.ToString();
+					}
+					else
+					{
+						this.UIrelayTarget = "Kerbin";
+					}
 				}
 				else
 				{