~stellarium/stellarium/0.12

« back to all changes in this revision

Viewing changes to src/core/StelCore.cpp

  • Committer: Alexander Wolf
  • Date: 2019-01-29 14:16:35 UTC
  • Revision ID: alex.v.wolf@gmail.com-20190129141635-xs1kt1lufaypkdv2
Let's try fix building series 0.12 on newest GCC

Show diffs side-by-side

added added

removed removed

Lines of Context:
520
520
 
521
521
Vec3d StelCore::altAzToEquinoxEqu(const Vec3d& v, RefractionMode refMode) const
522
522
{
523
 
        if (refMode==RefractionOff || skyDrawer==false || (refMode==RefractionAuto && skyDrawer->getFlagHasAtmosphere()==false))
 
523
        if (refMode==RefractionOff || skyDrawer==NULL || (refMode==RefractionAuto && skyDrawer->getFlagHasAtmosphere()==false))
524
524
                return matAltAzToEquinoxEqu*v;
525
525
        Vec3d r(v);
526
526
        skyDrawer->getRefraction().backward(r);
530
530
 
531
531
Vec3d StelCore::equinoxEquToAltAz(const Vec3d& v, RefractionMode refMode) const
532
532
{
533
 
        if (refMode==RefractionOff || skyDrawer==false || (refMode==RefractionAuto && skyDrawer->getFlagHasAtmosphere()==false))
 
533
        if (refMode==RefractionOff || skyDrawer==NULL || (refMode==RefractionAuto && skyDrawer->getFlagHasAtmosphere()==false))
534
534
                return matEquinoxEquToAltAz*v;
535
535
        Vec3d r(v);
536
536
        r.transfo4d(matEquinoxEquToAltAz);
540
540
 
541
541
Vec3d StelCore::altAzToJ2000(const Vec3d& v, RefractionMode refMode) const
542
542
{
543
 
        if (refMode==RefractionOff || skyDrawer==false || (refMode==RefractionAuto && skyDrawer->getFlagHasAtmosphere()==false))
 
543
        if (refMode==RefractionOff || skyDrawer==NULL || (refMode==RefractionAuto && skyDrawer->getFlagHasAtmosphere()==false))
544
544
                return matEquinoxEquToJ2000*matAltAzToEquinoxEqu*v;
545
545
        Vec3d r(v);
546
546
        skyDrawer->getRefraction().backward(r);
550
550
 
551
551
Vec3d StelCore::j2000ToAltAz(const Vec3d& v, RefractionMode refMode) const
552
552
{
553
 
        if (refMode==RefractionOff || skyDrawer==false || (refMode==RefractionAuto && skyDrawer->getFlagHasAtmosphere()==false))
 
553
        if (refMode==RefractionOff || skyDrawer==NULL || (refMode==RefractionAuto && skyDrawer->getFlagHasAtmosphere()==false))
554
554
                return matJ2000ToAltAz*v;
555
555
        Vec3d r(v);
556
556
        r.transfo4d(matJ2000ToAltAz);