Allow to disable reverse lookup for model string and livery ids

This commit is contained in:
Klaus Basan
2019-06-15 22:55:42 +02:00
committed by Mat Sutcliffe
parent ee9f1188d7
commit 6bc2a15f61
6 changed files with 57 additions and 20 deletions

View File

@@ -752,7 +752,7 @@ namespace BlackCore
// directly check model string
if (!modelString.isEmpty())
{
lookupModel = CAircraftMatcher::reverseLookupModelString(modelString, callsign, log);
lookupModel = CAircraftMatcher::reverseLookupModelString(modelString, callsign, setup.isReverseLookupModelString(), log);
if (lookupModel.hasValidDbKey()) { break; } // found by model string
}
@@ -986,7 +986,7 @@ namespace BlackCore
const CCallsign callsign(situation.getCallsign());
Q_ASSERT_X(!callsign.isEmpty(), Q_FUNC_INFO, "Empty callsign");
if (isCopilotAircraft(callsign)) { return; }
if (this->isCopilotAircraft(callsign)) { return; }
// update client info
this->autoAdjustCientGndCapability(situation);