From c94295e473323ad35b6fc991af8aa72d549a6e84 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Wed, 8 Oct 2014 01:34:11 +0200 Subject: [PATCH] Remove aircrafts limitation in FS9 plugin It should not be the plugins descision to limit the number of displayed aircrafts. Triggered an assert --- src/plugins/simulator/fs9/simulator_fs9.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/plugins/simulator/fs9/simulator_fs9.cpp b/src/plugins/simulator/fs9/simulator_fs9.cpp index 8396d49d1..baf3c53be 100644 --- a/src/plugins/simulator/fs9/simulator_fs9.cpp +++ b/src/plugins/simulator/fs9/simulator_fs9.cpp @@ -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);