Supernova.cpp   Supernova.cpp 
skipping to change at line 163 skipping to change at line 163
} }
Vec3f Supernova::getInfoColor(void) const Vec3f Supernova::getInfoColor(void) const
{ {
return Vec3f(1.0, 1.0, 1.0); return Vec3f(1.0, 1.0, 1.0);
} }
float Supernova::getVMagnitude(const StelCore* core) const float Supernova::getVMagnitude(const StelCore* core) const
{ {
double vmag = 20; double vmag = 20;
double currentJD = core->getJDay(); double currentJD = core->getJDE(); // GZ JDfix for 0.14. I hope the JD in the list is JDE? (Usually difference should be negligible)
double deltaJD = qAbs(peakJD-currentJD); double deltaJD = qAbs(peakJD-currentJD);
// Use supernova light curve model from here - http://www.astronet.r u/db/msg/1188703 // Use supernova light curve model from here - http://www.astronet.r u/db/msg/1188703
if (sntype.contains("II", Qt::CaseSensitive)) if (sntype.contains("II", Qt::CaseSensitive))
{ {
// Type II // Type II
if (peakJD<=currentJD) if (peakJD<=currentJD)
{ {
vmag = maxMagnitude; vmag = maxMagnitude;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/