Ref T698, skip further processing of aircraft parts (config) if aircraft NOT in range

This commit is contained in:
Klaus Basan
2019-07-05 01:55:07 +02:00
committed by Mat Sutcliffe
parent 7b5c071d97
commit 5e7c335a86

View File

@@ -1119,6 +1119,8 @@ namespace BlackCore
return;
}
const bool inRange = self->isAircraftInRange(callsign);
if (!inRange) { return; } // sort out all broadcasted we DO NOT NEED
if (!self->getSetupForServer().receiveAircraftParts()) { return; }
const QJsonObject config = doc.object().value("config").toObject();
if (config.empty()) { return; }