diff --git a/Aircraft/ufo/ufo-set.xml b/Aircraft/ufo/ufo-set.xml index 7f0085ba0..e48707843 100644 --- a/Aircraft/ufo/ufo-set.xml +++ b/Aircraft/ufo/ufo-set.xml @@ -75,7 +75,7 @@ Exported data are written to: ~/.fgfs/ufo-model-export.xml (Unix) - My Documents\ufo-model-export.xml (Microsoft Windows) + %APPDATA%\flightgear.org\ufo-model-export.xml (Microsoft Windows) diff --git a/Aircraft/ufo/ufo.nas b/Aircraft/ufo/ufo.nas index 37a86e70b..0234f220a 100644 --- a/Aircraft/ufo/ufo.nas +++ b/Aircraft/ufo/ufo.nas @@ -78,8 +78,7 @@ coord_dist_sq = func(xyz0, xyz1) { # sort vector of strings (bubblesort) # -sort = func(list) { - var l = list; +sort = func(l) { while (1) { var n = 0; for (var i = 0; i < size(l) - 1; i += 1) { @@ -775,7 +774,9 @@ exportData = func { var tmp = "save-ufo-data"; save = props.globals.getNode(tmp, 1); props.copy(modelmgr.get_data(), save); - savexml(getprop("/sim/fg-home") ~ "/ufo-model-export.xml", save.getPath()); + var path = getprop("/sim/fg-home") ~ "/ufo-model-export.xml"; + savexml(path, save.getPath()); + print("model data exported to ", path); props.globals.removeChild(tmp); }