using an uninitialized variable bug fixed.

This commit is contained in:
curt
1998-11-30 17:42:37 +00:00
committed by Tim Moore
parent 663964d94c
commit ed870aac76

View File

@@ -69,7 +69,7 @@ void Star::updatePosition(fgTIME *t)
xv = cos(eccAnom) - e;
yv = sqrt (1.0 - e*e) * sin(eccAnom);
v = atan2 (yv, xv); // the sun's true anomaly
r = sqrt (xv*xv + yv*yv); // and its distance
distance = r = sqrt (xv*xv + yv*yv); // and its distance
longitude = v + w; // the sun's true longitude