Fix finding of std. livery for a given airline.

This was ambigous in the past and could show wrong liveries if 2 or more liveries had the same airline code.
This commit is contained in:
Klaus Basan
2018-07-20 18:05:57 +02:00
parent 507167fb8b
commit 9c0e4356b2
4 changed files with 52 additions and 14 deletions

View File

@@ -184,6 +184,11 @@ namespace BlackMisc
return (m_airline.hasValidDesignator());
}
bool CLivery::isAirlineOperating() const
{
return this->isAirlineLivery() && this->getAirlineIcaoCode().isOperating();
}
bool CLivery::isAirlineStandardLivery() const
{
if (isColorLivery()) { return false; }