Ref T129, use all vatlib VFR types with flight plan value object

This commit is contained in:
Klaus Basan
2017-10-05 14:30:56 +02:00
committed by Mathew Sutcliffe
parent 3d541a8dd1
commit 8df801e7cc

View File

@@ -1070,10 +1070,11 @@ namespace BlackCore
CFlightPlan::FlightRules rules = CFlightPlan::VFR;
switch (fp->flightType)
{
default:
case vatFlightTypeVFR: rules = CFlightPlan::VFR; break;
case vatFlightTypeIFR: rules = CFlightPlan::IFR; break;
// case Cvatlib_Network::fpRuleType_SVFR: rules = CFlightPlan::SVFR; break;
case vatFlightTypeVFR: rules = CFlightPlan::VFR; break;
case vatFlightTypeIFR: rules = CFlightPlan::IFR; break;
case vatFlightTypeDVFR: rules = CFlightPlan::DVFR; break;
case vatFlightTypeSVFR: rules = CFlightPlan::SVFR; break;
default: rules = CFlightPlan::UNKNOWN; break;
}
auto *self = cbvar_cast(cbvar);