mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Ref T669, also interpolation Ref T668, remove last sent values if aircraft is removed
This commit is contained in:
committed by
Mat Sutcliffe
parent
f1ff410e64
commit
a86e98ca3a
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user