From 0cd79c5e2145795959976e06368192619f8f5ae9 Mon Sep 17 00:00:00 2001 From: Eric Oden Date: Fri, 15 Nov 2013 17:06:17 -0600 Subject: [PATCH] Remove casting to float on BODY:DISTANCE. --- BodyTarget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BodyTarget.cs b/BodyTarget.cs index 5e90544..01e7456 100644 --- a/BodyTarget.cs +++ b/BodyTarget.cs @@ -35,7 +35,7 @@ public override object GetSuffix(string suffixName) if (suffixName == "APOAPSIS") return target.orbit.ApA; if (suffixName == "PERIAPSIS") return target.orbit.PeA; if (suffixName == "VELOCITY") return new Vector(target.orbit.GetVel()); - if (suffixName == "DISTANCE") return (float)GetDistance(); + if (suffixName == "DISTANCE") return GetDistance(); if (suffixName == "BODY") return new BodyTarget(target.orbit.referenceBody, context); return base.GetSuffix(suffixName);