mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Ref T701, do NOT use FsInn data if model string iis unknown
* this can overrride "swift livery strings" * FsInn only is useful with a known model string
This commit is contained in:
committed by
Mat Sutcliffe
parent
c4e9114a83
commit
e389d5ac83
@@ -708,10 +708,17 @@ namespace BlackCore
|
||||
const ReverseLookupLogging reverseLookupEnabled = this->isReverseLookupMessagesEnabled();
|
||||
CStatusMessageList reverseLookupMessages;
|
||||
CStatusMessageList *pReverseLookupMessages = reverseLookupEnabled.testFlag(RevLogEnabled) ? &reverseLookupMessages : nullptr;
|
||||
if (!CAircraftMatcher::isKnownModelString(modelString, callsign, pReverseLookupMessages))
|
||||
{
|
||||
// from the T701 test, do NOT use if model string is unknown
|
||||
// this can overrride "swift livery strings", FsInn here only is useful with a known model string
|
||||
CMatchingUtils::addLogDetailsToList(pReverseLookupMessages, callsign,
|
||||
QStringLiteral("FsInn data ignored, as modelstring '%1' is not known").arg(modelString));
|
||||
return;
|
||||
}
|
||||
CMatchingUtils::addLogDetailsToList(pReverseLookupMessages, callsign,
|
||||
QStringLiteral("FsInn data from network: aircraft '%1', airline '%2', model '%3', combined '%4'").
|
||||
arg(aircraftIcaoDesignator, airlineIcaoDesignator, modelString, combinedAircraftType));
|
||||
|
||||
this->addOrUpdateAircraftInRange(callsign, aircraftIcaoDesignator, airlineIcaoDesignator, "", modelString, CAircraftModel::TypeFSInnData, pReverseLookupMessages);
|
||||
this->addReverseLookupMessages(callsign, reverseLookupMessages);
|
||||
this->sendReadyForModelMatching(callsign); // from FSInn
|
||||
|
||||
Reference in New Issue
Block a user