Ref T669, also interpolation Ref T668, remove last sent values if aircraft is removed

This commit is contained in:
Klaus Basan
2019-05-23 02:20:02 +02:00
committed by Mat Sutcliffe
parent f1ff410e64
commit a86e98ca3a
6 changed files with 16 additions and 10 deletions

View File

@@ -172,8 +172,7 @@ namespace BlackCore
// rendering related stuff
m_addAgainAircraftWhenRemoved.clear();
m_callsignsToBeRendered.clear();
m_lastSentParts.clear();
m_lastSentSituations.clear();
this->resetLastSentValues(); // clear all last sent values
m_updateRemoteAircraftInProgress = false;
this->clearInterpolationSetupsPerCallsign();
@@ -759,6 +758,12 @@ namespace BlackCore
}
}
bool ISimulator::physicallyRemoveRemoteAircraft(const CCallsign &callsign)
{
this->resetLastSentValues(callsign);
return true;
}
int ISimulator::physicallyRemoveMultipleRemoteAircraft(const CCallsignSet &callsigns)
{
if (callsigns.isEmpty()) { return 0; }