mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
[AFV] Ref T739, fix for tuned in/out sounds
see https://discordapp.com/channels/539048679160676382/568904623151382546/636639367804485643
This commit is contained in:
@@ -271,8 +271,8 @@ namespace BlackCore
|
||||
const bool atcCom1 = atcs.hasComUnitTunedInChannelSpacing(com1);
|
||||
const bool atcCom2 = atcs.hasComUnitTunedInChannelSpacing(com2);
|
||||
|
||||
const bool tunedIn1 = atcCom1 && !lastCom1.isReceiveEnabled();
|
||||
const bool tunedIn2 = atcCom2 && !lastCom2.isReceiveEnabled();
|
||||
const bool tunedIn1 = atcCom1 && !lastCom1.isReceiveEnabled();
|
||||
const bool tunedIn2 = atcCom2 && !lastCom2.isReceiveEnabled();
|
||||
const bool tunedOut1 = !atcCom1 && lastCom1.isReceiveEnabled();
|
||||
const bool tunedOut2 = !atcCom2 && lastCom2.isReceiveEnabled();
|
||||
|
||||
@@ -289,11 +289,11 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
// remember if I was tuned in, abusing the flag
|
||||
lastCom1.setReceiveEnabled(tunedIn1);
|
||||
lastCom2.setReceiveEnabled(tunedIn2);
|
||||
com1.setReceiveEnabled(atcCom1);
|
||||
com2.setReceiveEnabled(atcCom2);
|
||||
QWriteLocker l(&m_lockAircraft);
|
||||
m_lastEvaluatedCom1 = lastCom1;
|
||||
m_lastEvaluatedCom2 = lastCom2;
|
||||
m_lastEvaluatedCom1 = com1;
|
||||
m_lastEvaluatedCom2 = com1;
|
||||
}
|
||||
|
||||
bool CContextOwnAircraft::updateOwnSituation(const CAircraftSituation &situation)
|
||||
|
||||
Reference in New Issue
Block a user