mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Display number of included/DB models in "1st model set wizard"
This commit is contained in:
committed by
Mat Sutcliffe
parent
2de192600f
commit
7be54fde87
@@ -777,6 +777,16 @@ namespace BlackMisc
|
||||
return count;
|
||||
}
|
||||
|
||||
int CAircraftModelList::countByMode(CAircraftModel::ModelMode mode) const
|
||||
{
|
||||
int count = 0;
|
||||
for (const CAircraftModel &model : (*this))
|
||||
{
|
||||
if (model.matchesMode(mode)) { count++; }
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
int CAircraftModelList::countMilitaryAircraft() const
|
||||
{
|
||||
int count = 0;
|
||||
|
||||
Reference in New Issue
Block a user