Fixed aircraft.teleport when parkpos is set.
/sim/presets/parkpos needs to be empty, otherwise runway position is ignored.
This commit is contained in:
parent
c6316cca0f
commit
cd10e3edd7
1 changed files with 1 additions and 0 deletions
|
@ -991,6 +991,7 @@ var teleport = func(airport = "", runway = "", lat = -9999, lon = -9999, alt = 0
|
||||||
speed = 0, distance = 0, azimuth = 0, glideslope = 0, heading = 9999) {
|
speed = 0, distance = 0, azimuth = 0, glideslope = 0, heading = 9999) {
|
||||||
setprop("/sim/presets/airport-id", airport);
|
setprop("/sim/presets/airport-id", airport);
|
||||||
setprop("/sim/presets/runway", runway);
|
setprop("/sim/presets/runway", runway);
|
||||||
|
setprop("/sim/presets/parkpos", "");
|
||||||
setprop("/sim/presets/latitude-deg", lat);
|
setprop("/sim/presets/latitude-deg", lat);
|
||||||
setprop("/sim/presets/longitude-deg", lon);
|
setprop("/sim/presets/longitude-deg", lon);
|
||||||
setprop("/sim/presets/altitude-ft", alt);
|
setprop("/sim/presets/altitude-ft", alt);
|
||||||
|
|
Loading…
Reference in a new issue