mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
[FSD] Overload prevention
* only allow aircraft to be added based on new positions, NOT on received ICAO data anymore * hardcoded max.range Discussion: https://discordapp.com/channels/539048679160676382/539925070550794240/643163521999306832
This commit is contained in:
committed by
Mat Sutcliffe
parent
911b23e29d
commit
857d5eb005
@@ -246,8 +246,8 @@ namespace BlackCore
|
||||
if (!message.isValid()) return;
|
||||
|
||||
const QString payload = message.toTokens().join(':');
|
||||
const QString line = message.pdu() + payload;
|
||||
const QString buffer = line + "\r\n";
|
||||
const QString line = message.pdu() + payload;
|
||||
const QString buffer = line + "\r\n";
|
||||
const QByteArray bufferEncoded = m_fsdTextCodec->fromUnicode(buffer);
|
||||
emitRawFsdMessage(buffer.trimmed(), true);
|
||||
if (m_printToConsole) { qDebug() << "FSD Sent=>" << bufferEncoded; }
|
||||
|
||||
Reference in New Issue
Block a user