mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T698, skip further processing of aircraft parts (config) if aircraft NOT in range
This commit is contained in:
committed by
Mat Sutcliffe
parent
7b5c071d97
commit
5e7c335a86
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user