1
0
Fork 0

Align heading with runway on Select Airport

Previously the Select Airport dialog set
the heading preset to 0.  A recent change in the
reposition code meant that this was now being
complied with.  This change fixes it by setting
the heading to the "uninitialized" special value
of 9999.0.
This commit is contained in:
Stuart Buchanan 2020-05-05 08:04:33 +01:00
parent b72348f320
commit 49874ceff3

View file

@ -235,7 +235,7 @@
setprop("/sim/presets/offset-distance-nm", 0); setprop("/sim/presets/offset-distance-nm", 0);
setprop("/sim/presets/offset-azimuth-deg", 0); setprop("/sim/presets/offset-azimuth-deg", 0);
setprop("/sim/presets/glideslope-deg", 0); setprop("/sim/presets/glideslope-deg", 0);
setprop("/sim/presets/heading-deg", 0); setprop("/sim/presets/heading-deg", 9999.0);
if (mode["bestrunway"].getBoolValue()) { if (mode["bestrunway"].getBoolValue()) {
setprop("/sim/presets/runway", ""); setprop("/sim/presets/runway", "");