1
0
Fork 0

using an uninitialized variable bug fixed.

This commit is contained in:
curt 1998-11-30 17:42:37 +00:00
parent d25ab417c5
commit c4a6d31750

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