fix bug with ephemeris
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4830 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 70e5fda1ff190f3df1fe24fe57588184585166ea Former-commit-id: 1fb8eff25450d3274a3e227a987e43d26f497a85
This commit is contained in:
parent
e715b83d11
commit
67a8a9b222
2 changed files with 5 additions and 2 deletions
|
@ -16,6 +16,9 @@
|
|||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "celestialbody.h"
|
||||
#include "star.h"
|
||||
|
||||
void ePhCelestialBody::updatePosition(double mjd, ePhStar *ourSun)
|
||||
{
|
||||
|
|
|
@ -45,7 +45,7 @@ bool ePhStarData::load( const char *path )
|
|||
FILE * f;
|
||||
double ra, dec, mag;
|
||||
|
||||
string name;
|
||||
char name;
|
||||
|
||||
f = fopen (path, "r");
|
||||
if (f == NULL)
|
||||
|
@ -56,7 +56,7 @@ bool ePhStarData::load( const char *path )
|
|||
{
|
||||
for (i = 0; i < num; i++)
|
||||
{
|
||||
fscanf (f, "%s %f %f %f ", &name, &ra, &dec, &mag);
|
||||
fscanf (f, "%s %lf %lf %lf ", &name, &ra, &dec, &mag);
|
||||
_stars.push_back(SGVec3d(ra, dec, mag));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue