diff --git a/Nasal/aircraft.nas b/Nasal/aircraft.nas index 581dbf795..8d28b1a2f 100644 --- a/Nasal/aircraft.nas +++ b/Nasal/aircraft.nas @@ -1002,7 +1002,7 @@ var teleport = func(airport = "", runway = "", lat = -9999, lon = -9999, alt = 0 setprop("/sim/presets/offset-azimuth-nm", azimuth); setprop("/sim/presets/glideslope-deg", glideslope); setprop("/sim/presets/heading-deg", heading); - fgcommand("presets-commit"); + fgcommand("reposition"); } diff --git a/Nasal/gui.nas b/Nasal/gui.nas index f3d25a753..65b160c96 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -597,7 +597,7 @@ var load_flight_sel = nil; var load_flight = func { var load = func(n) { fgcommand("load", props.Node.new({ file: n.getValue() })); - fgcommand("presets-commit"); + fgcommand("reposition"); } if (load_flight_sel == nil) load_flight_sel = FileSelector.new(load, "Load Flight", "Load", diff --git a/Nasal/tutorial/tutorial.nas b/Nasal/tutorial/tutorial.nas index 4c50659b8..e4604cb62 100644 --- a/Nasal/tutorial/tutorial.nas +++ b/Nasal/tutorial/tutorial.nas @@ -85,7 +85,7 @@ var startTutorial = func { var presets = tutorialN.getChild("presets"); if (presets != nil) { props.copy(presets, props.globals.getNode("/sim/presets")); - fgcommand("presets-commit"); + fgcommand("reposition"); if (getprop("/sim/presets/on-ground")) { var eng = props.globals.getNode("/controls/engines"); @@ -104,7 +104,7 @@ var startTutorial = func { # do_group(tutorialN.getNode("init")); - is_running(1); # needs to be after "presets-commit" + is_running(1); # needs to be after "reposition" display.clear(); display.show(); diff --git a/gui/dialogs/airports.xml b/gui/dialogs/airports.xml index 635344c21..e4a324c9f 100644 --- a/gui/dialogs/airports.xml +++ b/gui/dialogs/airports.xml @@ -1434,7 +1434,7 @@ - presets-commit + reposition dialog-close diff --git a/gui/dialogs/location-in-air.xml b/gui/dialogs/location-in-air.xml index 64d4c879d..e8329d41e 100644 --- a/gui/dialogs/location-in-air.xml +++ b/gui/dialogs/location-in-air.xml @@ -363,7 +363,7 @@ - presets-commit + reposition nasal diff --git a/gui/dialogs/seaport.xml b/gui/dialogs/seaport.xml index 08fab29ef..cb62fcb06 100644 --- a/gui/dialogs/seaport.xml +++ b/gui/dialogs/seaport.xml @@ -69,7 +69,7 @@ var teleport = func(lat, lon) { setprop("/sim/presets/latitude-deg", lat); setprop("/sim/presets/longitude-deg", lon); - fgcommand("presets-commit"); + fgcommand("reposition"); } var on_water = func(lat, lon) {