mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T423, function to recalculate all aircraft (used when aircraft is moved or such)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user