mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 09:15:34 +08:00
refs #863 Removed unused method.
This commit is contained in:
@@ -170,24 +170,6 @@ namespace BlackCore
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CSimulatorCommon::setInitialAircraftSituation(CSimulatedAircraft &aircraft)
|
|
||||||
{
|
|
||||||
if (!this->m_interpolator) { return false; }
|
|
||||||
const CCallsign callsign(aircraft.getCallsign());
|
|
||||||
Q_ASSERT_X(!callsign.isEmpty(), Q_FUNC_INFO, "Missing callsign");
|
|
||||||
|
|
||||||
// with an interpolator the interpolated situation is used
|
|
||||||
// to avoid position jittering when displayed
|
|
||||||
const qint64 time = QDateTime::currentMSecsSinceEpoch();
|
|
||||||
IInterpolator::InterpolationStatus interpolationStatus;
|
|
||||||
CInterpolationHints &hints = m_hints[aircraft.getCallsign()];
|
|
||||||
hints.setVtolAircraft(aircraft.isVtol());
|
|
||||||
const CAircraftSituation currentSituation(m_interpolator->getInterpolatedSituation(callsign, time, hints, interpolationStatus));
|
|
||||||
if (!interpolationStatus.didInterpolationSucceed()) { return false; }
|
|
||||||
aircraft.setSituation(currentSituation);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CSimulatorCommon::reloadWeatherSettings()
|
void CSimulatorCommon::reloadWeatherSettings()
|
||||||
{
|
{
|
||||||
if (!m_isWeatherActivated) { return; }
|
if (!m_isWeatherActivated) { return; }
|
||||||
|
|||||||
@@ -165,9 +165,6 @@ namespace BlackCore
|
|||||||
//! Restore aircraft from the provider data
|
//! Restore aircraft from the provider data
|
||||||
void resetAircraftFromProvider(const BlackMisc::Aviation::CCallsign &callsign);
|
void resetAircraftFromProvider(const BlackMisc::Aviation::CCallsign &callsign);
|
||||||
|
|
||||||
//! Override situation from current interpolator values, if any!
|
|
||||||
bool setInitialAircraftSituation(BlackMisc::Simulation::CSimulatedAircraft &aircraft);
|
|
||||||
|
|
||||||
//! Set own model
|
//! Set own model
|
||||||
void reverseLookupAndUpdateOwnAircraftModel(const BlackMisc::Simulation::CAircraftModel &model);
|
void reverseLookupAndUpdateOwnAircraftModel(const BlackMisc::Simulation::CAircraftModel &model);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user