mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 03:35:38 +08:00
Ref T773, always set setup for interpolation logger
This commit is contained in:
committed by
Mat Sutcliffe
parent
a629b70724
commit
af12325856
@@ -508,16 +508,15 @@ namespace BlackMisc
|
|||||||
|
|
||||||
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 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;
|
const bool changedSituations = lastModifed > m_situationsLastModified;
|
||||||
|
|
||||||
m_currentTimeMsSinceEpoch = currentTimeSinceEpoc;
|
m_currentTimeMsSinceEpoch = currentTimeSinceEpoc;
|
||||||
m_currentInterpolationStatus.reset();
|
m_currentInterpolationStatus.reset();
|
||||||
m_currentPartsStatus.reset();
|
m_currentPartsStatus.reset();
|
||||||
|
m_currentSetup = setup;
|
||||||
|
|
||||||
if (changedSetup || changedSituations)
|
if (changedSituations)
|
||||||
{
|
{
|
||||||
m_currentSetup = setup;
|
|
||||||
m_situationsLastModified = lastModifed;
|
m_situationsLastModified = lastModifed;
|
||||||
m_currentSituations = this->remoteAircraftSituationsAndChange(setup); // only update when needed
|
m_currentSituations = this->remoteAircraftSituationsAndChange(setup); // only update when needed
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user