mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 23:05:34 +08:00
Ref T259, Ref T243 improved utility functions so parts can be guessed in interpolator
* engine count * aligned naming to "getEnginesCount" * formatting
This commit is contained in:
committed by
Roland Winklmeier
parent
c3f05ea1cd
commit
e3d17859a0
@@ -57,6 +57,17 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
void CAircraftEngineList::setEngines(const CAircraftEngine &engine, int engineNumber)
|
||||
{
|
||||
this->clear();
|
||||
for (int e = 0; e < engineNumber; e++)
|
||||
{
|
||||
CAircraftEngine copy(engine);
|
||||
copy.setNumber(e + 1); // 1 based
|
||||
this->push_back(engine);
|
||||
}
|
||||
}
|
||||
|
||||
void CAircraftEngineList::initEngines(int engineNumber, bool on)
|
||||
{
|
||||
this->clear();
|
||||
|
||||
Reference in New Issue
Block a user