Skip to content

Commit 00aded9

Browse files
committed
Let's disable "unwanted code" (issue Stellarium#391)
1 parent 00d348b commit 00aded9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/core/StelObserver.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,9 @@ double StelObserver::getDistanceFromCenter(void) const
208208
const double a=getHomePlanet()->getRadius();
209209
const double bByA = getHomePlanet()->getOneMinusOblateness(); // b/a;
210210

211-
if (fabs(currentLocation.latitude)>=89.9) // avoid tan(90) issues.
212-
return a * bByA;
211+
// Details: https://github.com/Stellarium/stellarium/issues/391
212+
//if (fabs(currentLocation.latitude)>=89.9) // avoid tan(90) issues.
213+
// return a * bByA;
213214

214215
const double latRad=currentLocation.latitude*(M_PI/180.0);
215216
const double u = atan( bByA * tan(latRad));
@@ -237,8 +238,9 @@ Vec3d StelObserver::getTopographicOffsetFromCenter(void) const
237238
const double a=getHomePlanet()->getRadius();
238239
const double bByA = getHomePlanet()->getOneMinusOblateness(); // b/a;
239240

240-
if (fabs(currentLocation.latitude)>=89.9) // avoid tan(90) issues.
241-
return a * bByA;
241+
// Details: https://github.com/Stellarium/stellarium/issues/391
242+
//if (fabs(currentLocation.latitude)>=89.9) // avoid tan(90) issues.
243+
// return a * bByA;
242244

243245
const double latRad=currentLocation.latitude*(M_PI/180.0);
244246
const double u = atan( bByA * tan(latRad));

0 commit comments

Comments
 (0)