mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Allow to disable reverse lookup for model string and livery ids
This commit is contained in:
committed by
Mat Sutcliffe
parent
ee9f1188d7
commit
6bc2a15f61
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user