mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[traffic] Optimize comparison for cancellation messages
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -654,6 +654,8 @@ void TrafficManager::DecodeFirstMessage()
|
||||
// cancellations before others
|
||||
if (a.m_cancellation)
|
||||
return !b.m_cancellation;
|
||||
else if (b.m_cancellation)
|
||||
return false;
|
||||
// sort by shortest distance between reference point and position/viewport
|
||||
std::vector<ms::LatLon> locations;
|
||||
if (m_currentPositionLazy.second)
|
||||
|
||||
Reference in New Issue
Block a user