Use an elliptical orbit for the Moon outside a range of 2000 years from present; keeps Moon from crashing into the Earth far in the past or future.

ver1_5_1
Chris Laurel 2002-09-13 07:33:33 +00:00
parent 9ddbba65ca
commit a877267246
1 changed files with 1 additions and 1 deletions

View File

@ -2319,7 +2319,7 @@ Orbit* GetCustomOrbit(const string& name)
if (name == "earth")
return new MixedOrbit(new EarthOrbit(), yearToJD(-4000), yearToJD(4000), astro::SolarMass);
if (name == "moon")
return new LunarOrbit();
return new MixedOrbit(new LunarOrbit(), yearToJD(-2000), yearToJD(4000), astro::SolarMass);
if (name == "mars")
return new MixedOrbit(new MarsOrbit(), yearToJD(-4000), yearToJD(4000), astro::SolarMass);
if (name == "jupiter")