mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +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 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user