mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T232, aircraft can be re-added or removed via "dot-commands"
* can be used for testing * utility functions to find inconsistent aircraft states * reset highlight state
This commit is contained in:
@@ -137,15 +137,9 @@ namespace BlackSimPlugin
|
||||
|
||||
bool CSimulatorFsCommon::changeRemoteAircraftEnabled(const CSimulatedAircraft &aircraft)
|
||||
{
|
||||
if (aircraft.isEnabled())
|
||||
{
|
||||
this->physicallyAddRemoteAircraft(aircraft);
|
||||
}
|
||||
else
|
||||
{
|
||||
this->physicallyRemoveRemoteAircraft(aircraft.getCallsign());
|
||||
}
|
||||
return true;
|
||||
return aircraft.isEnabled() ?
|
||||
this->physicallyAddRemoteAircraft(aircraft) :
|
||||
this->physicallyRemoveRemoteAircraft(aircraft.getCallsign());
|
||||
}
|
||||
|
||||
void CSimulatorFsCommon::onSwiftDbAirportsRead()
|
||||
|
||||
Reference in New Issue
Block a user