mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T730, FSD callsign string function, addressing the "*EDDF_TWR" issue
This commit is contained in:
committed by
Mat Sutcliffe
parent
ca26ddd225
commit
5eb3dee829
@@ -139,6 +139,13 @@ namespace BlackMisc
|
||||
m_callsign.at(m_callsign.size() - 1) >= 'A' && m_callsign.at(m_callsign.size() - 1) <= 'Z';
|
||||
}
|
||||
|
||||
QString CCallsign::getFsdCallsignString() const
|
||||
{
|
||||
// mainly used to fix the cross coupled callsigns such as *EDDF_TWR
|
||||
if (m_callsignAsSet.startsWith('*')) { return this->getStringAsSet(); }
|
||||
return this->asString();
|
||||
}
|
||||
|
||||
bool CCallsign::isSameAsSet() const
|
||||
{
|
||||
return m_callsign == m_callsignAsSet;
|
||||
|
||||
@@ -89,6 +89,9 @@ namespace BlackMisc
|
||||
//! Get callsign.
|
||||
const QString &getStringAsSet() const { return m_callsignAsSet; }
|
||||
|
||||
//! The callsign string used with FSD
|
||||
QString getFsdCallsignString() const;
|
||||
|
||||
//! Same as set callsign?
|
||||
bool isSameAsSet() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user