summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander V. Wolf <alex.v.wolf@gmail.com>2022-07-14 21:13:02 +0700
committerAlexander V. Wolf <alex.v.wolf@gmail.com>2022-07-14 21:13:02 +0700
commit67a9f256e41a5ce80dae7c7b31301910c972f2c7 (patch)
tree3c93c259404f8cb7fba21b324fd51dc16763e272
parent91a6b9d543690a20fea9537cc990ce317c2f9f77 (diff)
oops... fix the obvious issuesrefactoring/specific-time
-rw-r--r--src/core/modules/SpecificTimeMgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/modules/SpecificTimeMgr.cpp b/src/core/modules/SpecificTimeMgr.cpp
index 4112429b65..571902b044 100644
--- a/src/core/modules/SpecificTimeMgr.cpp
+++ b/src/core/modules/SpecificTimeMgr.cpp
@@ -415,7 +415,7 @@ double SpecificTimeMgr::getEquinox(int year, SpecificTimeMgr::Equinox equinox)
JDE0 = 2451810.21715 + Y*(365242.01767 + Y*(-0.11575 + Y*( 0.00337 + Y*( 0.00078))));
}
else
- return -1.0;
+ return 0.0;
const double T = (JDE0 - 2451545.0)/36525.;
const double W = 35999.373*T - 2.47; // degrees!
@@ -449,7 +449,7 @@ double SpecificTimeMgr::getSolstice(int year, SpecificTimeMgr::Solstice solstice
JDE0 = 2451900.05952 + Y*(365242.74049 + Y*(-0.06223 + Y*(-0.00823 + Y*( 0.00032))));
}
else
- return -1.0;
+ return 0.0;
const double T = (JDE0 - 2451545.0)/36525.;
const double W = 35999.373*T - 2.47; // degrees!