mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-15 03:45:41 +08:00
fix: clang format
This commit is contained in:
@@ -888,7 +888,7 @@ namespace swift::simplugin::msfs2024common
|
||||
aircraftSituation.setAltitude(
|
||||
CAltitude(simulatorOwnAircraft.altitudeFt, CAltitude::MeanSeaLevel, CLengthUnit::ft()));
|
||||
}
|
||||
|
||||
|
||||
double CSimulatorMsfs2024::calcEngineFactor(int engineType)
|
||||
{
|
||||
// this is a bit of a guess, but it seems that idle is around 30% in the sim, so
|
||||
@@ -971,7 +971,8 @@ namespace swift::simplugin::msfs2024common
|
||||
simulatorOwnAircraft.engine5Power, simulatorOwnAircraft.engine6Power,
|
||||
simulatorOwnAircraft.engine7Power, simulatorOwnAircraft.engine8Power };
|
||||
|
||||
DOUBLE factor = this->calcEngineFactor(static_cast<int>(simulatorOwnAircraft.engineType)); // clears all pending aircraft etc
|
||||
DOUBLE factor = this->calcEngineFactor(
|
||||
static_cast<int>(simulatorOwnAircraft.engineType)); // clears all pending aircraft etc
|
||||
|
||||
for (int index = 0; index < simulatorOwnAircraft.numberOfEngines; ++index)
|
||||
{
|
||||
|
||||
@@ -501,7 +501,6 @@ namespace swift::simplugin::msfs2024common
|
||||
|
||||
double calcEngineFactor(int engineType);
|
||||
|
||||
|
||||
//! Called when data about our own aircraft are received
|
||||
void updateOwnAircraftFromSimulator(const DataDefinitionOwnAircraft &simulatorOwnAircraft);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user