Ref T778, style and comments, debug hints

This commit is contained in:
Klaus Basan
2020-04-05 03:38:36 +02:00
committed by Mat Sutcliffe
parent 829777bf3a
commit 46d417c5a2
6 changed files with 9 additions and 5 deletions

View File

@@ -523,7 +523,7 @@ namespace BlackMisc
{
Q_ASSERT_X(!m_callsign.isEmpty(), Q_FUNC_INFO, "Missing callsign");
const qint64 lastModifed = this->situationsLastModified(m_callsign);
const qint64 lastModifed = this->situationsLastModified(m_callsign);
const bool slowUpdateStep = (((m_interpolatedSituationsCounter + aircraftNumber) % 25) == 0); // flag when parts are updated, which need not to be updated every time
const bool changedSituations = lastModifed > m_situationsLastModified;

View File

@@ -187,6 +187,7 @@ namespace BlackMisc
CInterpolatorSpline::CInterpolant CInterpolatorSpline::getInterpolant(SituationLog &log)
{
// recalculate derivatives only if they changed
// m_situationsLastModified updated in initIniterpolationStepData
const bool recalculate = (m_currentTimeMsSinceEpoch >= m_nextSampleAdjustedTime) || // new step
(m_situationsLastModified > m_situationsLastModifiedUsed); // modified