mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Ref T298, split military flag into check for civilian/military
* in military -> only military aircraft? * in civilian -> only civilian aircraft?
This commit is contained in:
@@ -714,9 +714,17 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
// military / civilian
|
||||
if (mode.testFlag(CAircraftMatcherSetup::ByMilitary))
|
||||
bool milFlagReduced = false;
|
||||
if (mode.testFlag(CAircraftMatcherSetup::ByForceMilitary) && remoteAircraft.isMilitary())
|
||||
{
|
||||
matchedModels = ifPossibleReduceByMilitaryFlag(remoteAircraft, matchedModels, reduced, log);
|
||||
milFlagReduced = true;
|
||||
}
|
||||
|
||||
if (!milFlagReduced && mode.testFlag(CAircraftMatcherSetup::ByForceCivilian) && !remoteAircraft.isMilitary())
|
||||
{
|
||||
matchedModels = ifPossibleReduceByMilitaryFlag(remoteAircraft, matchedModels, reduced, log);
|
||||
milFlagReduced = true;
|
||||
}
|
||||
|
||||
// combined code
|
||||
|
||||
Reference in New Issue
Block a user