mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Remove aircrafts limitation in FS9 plugin
It should not be the plugins descision to limit the number of displayed aircrafts. Triggered an assert
This commit is contained in:
@@ -110,13 +110,6 @@ namespace BlackSimPlugin
|
||||
|
||||
void CSimulatorFs9::addRemoteAircraft(const CCallsign &callsign, const BlackMisc::Aviation::CAircraftSituation &initialSituation)
|
||||
{
|
||||
if (m_hashFs9Clients.size() >= 20)
|
||||
{
|
||||
// Only add a maximum number of 20 clients.
|
||||
// FIXME: We need a smart method to get the 20 nearest aircrafts. If someone logs in
|
||||
// nearby we need to kick out the one with max distance.
|
||||
return;
|
||||
}
|
||||
|
||||
// Create a new client thread, set update frequency to 25 ms and start it
|
||||
QThread *clientThread = new QThread(this);
|
||||
|
||||
Reference in New Issue
Block a user