diff --git a/src/object/object_manager.cpp b/src/object/object_manager.cpp index 0e6e28a3..a903a3a4 100644 --- a/src/object/object_manager.cpp +++ b/src/object/object_manager.cpp @@ -282,6 +282,8 @@ std::vector CObjectManager::RadarAll(CObject* pThis, Math::Vector this RadarFilter filter_flying = static_cast(filter & (FILTER_ONLYLANDING | FILTER_ONLYFLYING)); RadarFilter filter_enemy = static_cast(filter & (FILTER_FRIENDLY | FILTER_ENEMY | FILTER_NEUTRAL)); + // Use a multimap to allow for multiple objects at exactly the same distance + // from the origin to be returned. std::multimap best; for ( auto it = m_objects.begin() ; it != m_objects.end() ; ++it )