Ref T775, special handling for "broadcast" messages

* identify broadcast messages
* do NOT play sound
* use "own" tab for text messages (group together)
This commit is contained in:
Klaus Basan
2020-02-03 17:45:53 +01:00
committed by Mat Sutcliffe
parent 4de544a991
commit 00ed15f111
5 changed files with 70 additions and 5 deletions

View File

@@ -134,6 +134,17 @@ namespace BlackMisc
return m_callsign.endsWith("SUP");
}
bool CCallsign::isBroadcastCallsign() const
{
return m_callsignAsSet == "*" || m_callsign == "*" || m_callsignAsSet == "BROADCAST";
}
void CCallsign::markAsBroadcastCallsign()
{
m_callsignAsSet = "BROADCAST";
m_callsign = "BROADCAST";
}
bool CCallsign::isMaybeCopilotCallsign(const CCallsign &pilotCallsign) const
{
return m_callsign.startsWith(pilotCallsign.asString()) &&