1
0
Fork 0

respect servers online flag.

This commit is contained in:
James Turner 2016-11-21 22:01:06 +00:00
parent e64a2db5a0
commit ee1a042847

View file

@ -1559,6 +1559,11 @@ void QtLauncher::onRefreshMPServersDone(simgear::HTTP::Request*)
continue;
}
if (c->getBoolValue("online") != true) {
// only list online servers
continue;
}
QString name = QString::fromStdString(c->getStringValue("name"));
QString loc = QString::fromStdString(c->getStringValue("location"));
QString host = QString::fromStdString(c->getStringValue("hostname"));