1
0
Fork 0

(Animated jetways) Fix dialog "can't find object" Nasal errors

This commit is contained in:
Ryan Miller 2011-06-16 15:24:31 -07:00
parent 2cb19bc34e
commit 887b9704b5

View file

@ -12,6 +12,8 @@
var aptlist = props.globals.getNode(self.getNode("text/property").getValue(), 1);
var UPDATE_PERIOD = 5;
var update = func
{
if (jetways != nil)
{
var list = "";
foreach (var apt; jetways.loaded_airports)
@ -19,6 +21,7 @@
list ~= apt ~ " ";
}
aptlist.setValue(list == "" ? "No airports loaded" : "Loaded airports: " ~ list);
}
settimer(update, UPDATE_PERIOD);
};
settimer(update, 0);