Ref T423, function to recalculate all aircraft (used when aircraft is moved or such)

This commit is contained in:
Klaus Basan
2018-11-06 01:27:26 +01:00
parent 2d4cdc8010
commit 8cf7f676fa
6 changed files with 23 additions and 0 deletions

View File

@@ -874,6 +874,13 @@ namespace BlackCore
return m_simulatorPlugin.second->followAircraft(callsign);
}
void CContextSimulator::recalculateAllAircraft()
{
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
if (!m_simulatorPlugin.second) { return; }
return m_simulatorPlugin.second->recalculateAllAircraft();
}
bool CContextSimulator::resetToModelMatchingAircraft(const CCallsign &callsign)
{
CSimulatedAircraft aircraft = this->getAircraftInRangeForCallsign(callsign);