refs #324 Enable the assert in addAircraftSituation

This commit is contained in:
Roland Winklmeier
2014-10-05 20:05:43 +02:00
parent faf931742a
commit 704721b01a
2 changed files with 3 additions and 13 deletions

View File

@@ -136,14 +136,7 @@ namespace BlackSimPlugin
void CSimulatorFs9::addAircraftSituation(const CCallsign &callsign, const CAircraftSituation &situation)
{
// FIXME: should be a Q_ASSERT
if (!m_hashFs9Clients.contains(callsign))
{
// 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;
}
Q_ASSERT(m_hashFs9Clients.contains(callsign));
CFs9Client *client = m_hashFs9Clients.value(callsign);
if (!client)