mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
refs #535, find standard livery
This commit is contained in:
@@ -56,6 +56,13 @@ namespace BlackCore
|
||||
return liveries.findByCombinedCode(combinedCode);
|
||||
}
|
||||
|
||||
CLivery CModelDataReader::getStdLiveryForAirlineCode(const CAirlineIcaoCode &icao) const
|
||||
{
|
||||
if (!icao.hasValidDesignator()) { return CLivery(); }
|
||||
CLiveryList liveries(getLiveries());
|
||||
return liveries.findStdLiveryByAirlineIcaoDesignator(icao);
|
||||
}
|
||||
|
||||
CLivery CModelDataReader::getLiveryForDbKey(int id) const
|
||||
{
|
||||
if (id < 0) { return CLivery(); }
|
||||
|
||||
Reference in New Issue
Block a user