ARMapRenderer: Keep map lines green when they should be.
[AntennaRange.git] / ARMapRenderer.cs
blob:a/ARMapRenderer.cs -> blob:b/ARMapRenderer.cs
--- a/ARMapRenderer.cs
+++ b/ARMapRenderer.cs
@@ -261,7 +261,8 @@
 			}
 			else
 			{
-				if (relay.transmitDistance < relay.nominalTransmitDistance)
+				// @TODO Use cached connection status
+				if (relay.transmitDistance / relay.NominalLinkDistance() <= 1d)
 				{
 					thisColor = Color.green;
 				}