mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #748, fixed airport entity and reader resolution
This commit is contained in:
@@ -708,6 +708,9 @@ namespace BlackCore
|
||||
{
|
||||
case CWebReaderFlags::IcaoDataReader: return this->m_icaoDataReader;
|
||||
case CWebReaderFlags::ModelReader: return this->m_modelDataReader;
|
||||
case CWebReaderFlags::AirportReader: return this->m_airportDataReader;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,11 @@ namespace BlackCore
|
||||
f |= ModelReader;
|
||||
}
|
||||
|
||||
if (entity.testFlag(CEntityFlags::AirportEntity))
|
||||
{
|
||||
f |= AirportReader;
|
||||
}
|
||||
|
||||
if (entity.testFlag(CEntityFlags::InfoObjectEntity)) { f |= InfoDataReader; }
|
||||
if (entity.testFlag(CEntityFlags::BookingEntity)) { f |= VatsimBookingReader; }
|
||||
if (entity.testFlag(CEntityFlags::VatsimDataFile)) { f |= VatsimDataReader; }
|
||||
|
||||
Reference in New Issue
Block a user