mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
[FS9] Function for at least halfway correct engine type
This commit is contained in:
committed by
Mat Sutcliffe
parent
1ab1e8ca70
commit
a3f646a792
@@ -385,6 +385,14 @@ namespace BlackMisc
|
||||
return c;
|
||||
}
|
||||
|
||||
QChar CAircraftIcaoCode::getAircraftTypeChar() const
|
||||
{
|
||||
if (m_combinedType.length() < 1) { return {}; }
|
||||
QChar c(m_combinedType.at(0));
|
||||
if (c == "-") { return {}; }
|
||||
return c;
|
||||
}
|
||||
|
||||
QString CAircraftIcaoCode::getCombinedModelDescription() const
|
||||
{
|
||||
// Shortcut for most cases
|
||||
|
||||
@@ -145,6 +145,9 @@ namespace BlackMisc
|
||||
//! Aircraft type, such a L(andplane), S(eaplane), H(elicopter)
|
||||
QString getAircraftType() const;
|
||||
|
||||
//! Aircraft type, such a L(andplane), S(eaplane), H(elicopter)
|
||||
QChar getAircraftTypeChar() const;
|
||||
|
||||
//! Set type
|
||||
void setCombinedType(const QString &type) { m_combinedType = type.trimmed().toUpper(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user