mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
@@ -493,11 +493,11 @@ namespace BlackMisc::Simulation::Settings
|
||||
const CFrequency f(msg.getFrequency());
|
||||
if (mt.testFlag(TextMessagesCom1))
|
||||
{
|
||||
if (aircraft.getCom1System().isActiveFrequencyWithin8_33kHzChannel(f)) { return true; }
|
||||
if (aircraft.getCom1System().isActiveFrequencySameFrequency(f)) { return true; }
|
||||
}
|
||||
if (mt.testFlag(TextMessagesCom2))
|
||||
{
|
||||
if (aircraft.getCom2System().isActiveFrequencyWithin8_33kHzChannel(f)) { return true; }
|
||||
if (aircraft.getCom2System().isActiveFrequencySameFrequency(f)) { return true; }
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -577,8 +577,8 @@ namespace BlackMisc::Simulation
|
||||
|
||||
bool CSimulatedAircraft::isActiveFrequencyWithinChannelSpacing(const CFrequency &comFrequency) const
|
||||
{
|
||||
return m_com1system.isActiveFrequencyWithinChannelSpacing(comFrequency) ||
|
||||
m_com2system.isActiveFrequencyWithinChannelSpacing(comFrequency);
|
||||
return m_com1system.isActiveFrequencySameFrequency(comFrequency) ||
|
||||
m_com2system.isActiveFrequencySameFrequency(comFrequency);
|
||||
}
|
||||
|
||||
bool CSimulatedAircraft::setTransponderMode(CTransponder::TransponderMode mode)
|
||||
|
||||
Reference in New Issue
Block a user