From af12325856995b2dfc408849cb11ff3eb1996a53 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 12 Feb 2020 21:49:39 +0100 Subject: [PATCH] Ref T773, always set setup for interpolation logger --- src/blackmisc/simulation/interpolator.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/blackmisc/simulation/interpolator.cpp b/src/blackmisc/simulation/interpolator.cpp index 655c7955b..2d83f5ac2 100644 --- a/src/blackmisc/simulation/interpolator.cpp +++ b/src/blackmisc/simulation/interpolator.cpp @@ -508,16 +508,15 @@ namespace BlackMisc 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 changedSetup = m_currentSetup != setup; const bool changedSituations = lastModifed > m_situationsLastModified; m_currentTimeMsSinceEpoch = currentTimeSinceEpoc; m_currentInterpolationStatus.reset(); m_currentPartsStatus.reset(); + m_currentSetup = setup; - if (changedSetup || changedSituations) + if (changedSituations) { - m_currentSetup = setup; m_situationsLastModified = lastModifed; m_currentSituations = this->remoteAircraftSituationsAndChange(setup); // only update when needed }