Ref T261, simulated aircraft get/set CG

This commit is contained in:
Klaus Basan
2018-04-27 03:06:17 +02:00
committed by Roland Winklmeier
parent 3f7b229e66
commit f330e91350
4 changed files with 24 additions and 0 deletions

View File

@@ -108,6 +108,19 @@ namespace BlackMisc
return c;
}
int CSimulatedAircraftList::setCG(const CCallsign &callsign, const CLength &cg, bool onlyFirst)
{
int c = 0;
for (CSimulatedAircraft &aircraft : (*this))
{
if (aircraft.getCallsign() != callsign) { continue; }
aircraft.setCG(cg);
c++;
if (onlyFirst) break;
}
return c;
}
int CSimulatedAircraftList::setFastPositionUpdates(const CCallsign &callsign, bool fastPositions, bool onlyFirst)
{
int c = 0;