mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 09:15:34 +08:00
Ref T778 XSwiftBus traffic service prodives water/land flag for elevations
This commit is contained in:
@@ -360,7 +360,7 @@ namespace BlackCore
|
||||
return false;
|
||||
}
|
||||
|
||||
void ISimulator::callbackReceivedRequestedElevation(const CElevationPlane &plane, const CCallsign &callsign)
|
||||
void ISimulator::callbackReceivedRequestedElevation(const CElevationPlane &plane, const CCallsign &callsign, bool isWater)
|
||||
{
|
||||
if (this->isShuttingDown()) { return; }
|
||||
if (plane.isNull()) { return; } // this happens if requested for a coordinate where scenery is not available
|
||||
@@ -377,6 +377,7 @@ namespace BlackCore
|
||||
// signal we have received the elevation
|
||||
// used by log display
|
||||
emit this->receivedRequestedElevation(plane, callsign);
|
||||
Q_UNUSED(isWater)
|
||||
}
|
||||
|
||||
void ISimulator::resetAircraftStatistics()
|
||||
|
||||
@@ -268,7 +268,7 @@ namespace BlackCore
|
||||
|
||||
//! A requested elevation has been received
|
||||
//! \remark public for testing purposes
|
||||
virtual void callbackReceivedRequestedElevation(const BlackMisc::Geo::CElevationPlane &plane, const BlackMisc::Aviation::CCallsign &callsign);
|
||||
virtual void callbackReceivedRequestedElevation(const BlackMisc::Geo::CElevationPlane &plane, const BlackMisc::Aviation::CCallsign &callsign, bool isWater);
|
||||
|
||||
//! Allows to print out simulator specific statistics
|
||||
virtual QString getStatisticsSimulatorSpecific() const { return QString(); }
|
||||
|
||||
Reference in New Issue
Block a user