1
0
Fork 0

Fix in-air reposition runway heading

When repositioning to an airport runway, clear the heading preset
so we use the runway heading.

https://sourceforge.net/p/flightgear/codetickets/2283/
This commit is contained in:
James Turner 2020-07-14 17:16:07 +01:00
parent dee62a362d
commit 045c8f4815

View file

@ -538,6 +538,7 @@
setprop("/sim/presets/runway-requested", 0); setprop("/sim/presets/runway-requested", 0);
} else { } else {
setprop("/sim/presets/carrier", ""); setprop("/sim/presets/carrier", "");
setprop("/sim/presets/heading-deg", 9999);
var runway = getprop("/sim/presets/runway"); var runway = getprop("/sim/presets/runway");
if (runway != "") { if (runway != "") {
setprop("/sim/presets/runway-requested", 1); setprop("/sim/presets/runway-requested", 1);