mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Ref T260, remember timestamp for last situation changed
* skip ground elevation updates if not near ground * function no longer const * renamings
This commit is contained in:
committed by
Roland Winklmeier
parent
94a334ad75
commit
302411e056
@@ -345,9 +345,12 @@ namespace BlackMisc
|
||||
CAircraftSituationList situations = this->remoteAircraftSituations(callsign);
|
||||
const int updated = situations.setGroundElevationChecked(elevation);
|
||||
if (updated < 1) { return false; }
|
||||
const qint64 ts = QDateTime::currentMSecsSinceEpoch();
|
||||
|
||||
{
|
||||
QWriteLocker l(&m_lockSituations);
|
||||
m_situationsByCallsign[callsign] = situations;
|
||||
m_situationsLastModified[callsign] = ts;
|
||||
}
|
||||
|
||||
// aircraft updates
|
||||
|
||||
Reference in New Issue
Block a user