We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16a059e commit 38aace4Copy full SHA for 38aace4
Src/LTRealTraffic.cpp
@@ -800,8 +800,8 @@ bool RealTrafficConnection::ProcessTrafficBuffer (const JSON_Object* pBuf)
800
pos.f.onGrnd = GND_ON;
801
else {
802
pos.f.onGrnd = GND_OFF;
803
- double d = jag_n(pJAc, RT_DRCT_BaroAlt); // prefer baro altitude
804
- if (d > 0.0) {
+ double d = jag_n_nan(pJAc, RT_DRCT_BaroAlt); // prefer baro altitude
+ if (!std::isnan(d)) {
805
if (!std::isnan(rtWx.QNH))
806
d = BaroAltToGeoAlt_ft(d, rtWx.QNH);
807
pos.SetAltFt(d);
0 commit comments