SporadicMeteorMgr.cpp   SporadicMeteorMgr.cpp 
skipping to change at line 73 skipping to change at line 73
return 0; return 0;
} }
void SporadicMeteorMgr::update(double deltaTime) void SporadicMeteorMgr::update(double deltaTime)
{ {
if (!m_flagShow) if (!m_flagShow)
{ {
return; return;
} }
StelCore* core = StelApp::getInstance().getCore();
// is paused?
// freeze meteors at the current position
if (!core->getTimeRate())
{
return;
}
// step through and update all active meteors // step through and update all active meteors
foreach (SporadicMeteor* m, activeMeteors) foreach (SporadicMeteor* m, activeMeteors)
{ {
if (!m->update(deltaTime)) if (!m->update(deltaTime))
{ {
activeMeteors.removeOne(m); activeMeteors.removeOne(m);
} }
} }
StelCore* core = StelApp::getInstance().getCore();
// going forward/backward OR current ZHR is zero ? // going forward/backward OR current ZHR is zero ?
// don't create new meteors // don't create new meteors
if(!core->getRealTimeSpeed() || m_zhr < 1) if(!core->getRealTimeSpeed() || m_zhr < 1)
{ {
return; return;
} }
// average meteors per frame // average meteors per frame
float mpf = m_zhr * deltaTime / 3600.f; float mpf = m_zhr * deltaTime / 3600.f;
 End of changes. 2 change blocks. 
9 lines changed or deleted 2 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/