diff --git a/src/blackcore/simulatorcommon.cpp b/src/blackcore/simulatorcommon.cpp index 7b28c7639..d56c664d3 100644 --- a/src/blackcore/simulatorcommon.cpp +++ b/src/blackcore/simulatorcommon.cpp @@ -367,6 +367,13 @@ namespace BlackCore return removed; } + int CSimulatorCommon::physicallyRemoveAllRemoteAircraft() + { + // a default implementation, but normally overridden by the sims + const CCallsignSet callsigns = this->getAircraftInRangeCallsigns(); + return this->physicallyRemoveMultipleRemoteAircraft(callsigns); + } + bool CSimulatorCommon::parseCommandLine(const QString &commandLine, const CIdentifier &originator) { if (this->isMyIdentifier(originator)) { return false; } diff --git a/src/blackcore/simulatorcommon.h b/src/blackcore/simulatorcommon.h index 0f57c3ced..f1fc24a02 100644 --- a/src/blackcore/simulatorcommon.h +++ b/src/blackcore/simulatorcommon.h @@ -85,6 +85,7 @@ namespace BlackCore virtual void unload() override; virtual bool isShuttingDown() const override; virtual int physicallyRemoveMultipleRemoteAircraft(const BlackMisc::Aviation::CCallsignSet &callsigns) override; + virtual int physicallyRemoveAllRemoteAircraft() override; //! \addtogroup swiftdotcommands //! @{