mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Ref T259, Ref T243 unify ground details when a new situation is received
This commit is contained in:
@@ -938,7 +938,7 @@ namespace BlackCore
|
||||
else if (client.hasCapability(CClient::FsdWithAircraftConfig))
|
||||
{
|
||||
const CAircraftPartsList parts = this->remoteAircraftParts(callsign);
|
||||
if (!parts.isEmpty()) { correctedSituation.adjustGroundFlag(parts); }
|
||||
if (!parts.isEmpty()) { correctedSituation.adjustGroundFlag(parts, true); }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -181,6 +181,12 @@ namespace BlackMisc
|
||||
situationList.push_frontKeepLatestFirstAdjustOffset(situation, IRemoteAircraftProvider::MaxSituationsPerCallsign);
|
||||
}
|
||||
|
||||
// unify all inbound ground information
|
||||
if (situation.hasInboundGroundInformation())
|
||||
{
|
||||
situationList.setOnGroundDetails(situation.getOnGroundDetails());
|
||||
}
|
||||
|
||||
// check sort order
|
||||
Q_ASSERT_X(situationList.isSortedAdjustedLatestFirst(), Q_FUNC_INFO, "wrong sort order");
|
||||
Q_ASSERT_X(situationList.size() <= IRemoteAircraftProvider::MaxSituationsPerCallsign, Q_FUNC_INFO, "Wrong size");
|
||||
|
||||
Reference in New Issue
Block a user