mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
Ref T335, reset to model matching aircraft enables again
This commit is contained in:
@@ -855,8 +855,9 @@ namespace BlackCore
|
|||||||
|
|
||||||
bool CContextSimulator::resetToModelMatchingAircraft(const CCallsign &callsign)
|
bool CContextSimulator::resetToModelMatchingAircraft(const CCallsign &callsign)
|
||||||
{
|
{
|
||||||
CSimulatedAircraft aircraft = getAircraftInRangeForCallsign(callsign);
|
CSimulatedAircraft aircraft = this->getAircraftInRangeForCallsign(callsign);
|
||||||
if (aircraft.getCallsign() != callsign) { return false; } // not found
|
if (aircraft.getCallsign() != callsign) { return false; } // not found
|
||||||
|
this->updateAircraftEnabled(callsign, true);
|
||||||
aircraft.setModel(aircraft.getNetworkModel());
|
aircraft.setModel(aircraft.getNetworkModel());
|
||||||
xCtxAddedRemoteAircraftReadyForModelMatching(aircraft);
|
xCtxAddedRemoteAircraftReadyForModelMatching(aircraft);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user