1
0
Fork 0

be slightly more efficient and slightly less verbose

This commit is contained in:
mfranz 2006-03-22 22:08:15 +00:00
parent 6e72f56735
commit d61de93a6e

View file

@ -6,13 +6,13 @@
<nasal> <nasal>
<open> <open>
tmp = "/sim/gui/dialogs/location-in-air/"; p = props.globals.getNode("/sim/gui/dialogs/location-in-air/", 1);
mode = { mode = {
airport: props.globals.getNode(tmp ~ "airport", 1), airport: p.getNode("airport", 1),
lonlat: props.globals.getNode(tmp ~ "lonlat", 1), lonlat: p.getNode("lonlat", 1),
vor: props.globals.getNode(tmp ~ "vor", 1), vor: p.getNode("vor", 1),
ndb: props.globals.getNode(tmp ~ "ndb", 1), ndb: p.getNode("ndb", 1),
fix: props.globals.getNode(tmp ~ "fix", 1), fix: p.getNode("fix", 1),
}; };
set_radio = func(m) { set_radio = func(m) {