1
0
Fork 0

Fix failed-to-load-server in multiplayer dialog

This commit is contained in:
Torsten Dreyer 2015-03-15 22:22:13 +01:00
parent 3f13b1b3e2
commit f4a3977127

View file

@ -23,7 +23,8 @@
}
var servers = props.globals.getNode("/sim/gui/dialogs/multiplay/servers", 1);
var updateServers = func {
var updateServers = func(n) {
if( !n.getValue() ) return;
servers.removeChildren("value");
# get the results list from the server
var serverlist = props.globals.getNode("/sim/multiplay/server-list", 1);
@ -61,7 +62,8 @@
['mpserver13.flightgear.org', 'Grenoble, France']
];
var updateServersFailed = func {
var updateServersFailed = func(n) {
if( !n.getValue() ) return;
debug.dump("Failed to retrieve server list!");
servers.removeChildren("value");