Added support for simpleRange when not using AdditiveRanges, and now caching relay status so it doesn't need to be recalculated.
[AntennaRange.git] / ARMapRenderer.cs
blob:a/ARMapRenderer.cs -> blob:b/ARMapRenderer.cs
--- a/ARMapRenderer.cs
+++ b/ARMapRenderer.cs
@@ -261,8 +261,7 @@
 			}
 			else
 			{
-				// @TODO Use cached connection status
-				if (relay.transmitDistance / relay.NominalLinkDistance() <= 1d)
+				if (relay.LinkStatus == ConnectionStatus.Optimal)
 				{
 					thisColor = Color.green;
 				}