File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/plugins/simulator/xplane Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1094,7 +1094,7 @@ namespace BlackSimPlugin::XPlane
10941094 // adjust altitude to compensate for XP12 temperature effect
10951095 const CLength relativeAltitude = interpolatedSituation.geodeticHeight () - getOwnAircraftPosition ().geodeticHeight ();
10961096 const double altitudeDeltaWeight = 2 - qBound (3000.0 , relativeAltitude.abs ().value (CLengthUnit::ft ()), 6000.0 ) / 3000 ;
1097- const CLength alt = interpolatedSituation.getAltitude () + m_altitudeDelta * altitudeDeltaWeight;
1097+ const CLength alt = interpolatedSituation.getAltitude () + m_altitudeDelta * altitudeDeltaWeight * ( 1 - interpolatedSituation. getOnGroundFactor ()) ;
10981098 interpolatedSituation.setAltitude ({ alt, interpolatedSituation.getAltitude ().getReferenceDatum () });
10991099
11001100 // update situation
You can’t perform that action at this time.
0 commit comments