Final corrections to make merged code compile, and reduce the adding and removing of other markers

This commit is contained in:
heurist1 2023-02-28 23:00:51 +00:00
parent 778111d466
commit daf63de55f
2 changed files with 2 additions and 1 deletions

View File

@ -488,7 +488,7 @@ void ADSBRxView::updateDetailsAndMap(int ageStep) {
details_view->update(entry);
}
// Store if the view is present and the list isn't full
else if (otherMarkersCanBeSent && (markerStored != MARKER_LIST_FULL) && (entry.age_state==0))
else if (otherMarkersCanBeSent && (markerStored != MARKER_LIST_FULL) && entry.pos.valid && (entry.age_state<=2))
{
marker.lon = entry.pos.longitude;
marker.lat = entry.pos.latitude;

View File

@ -272,6 +272,7 @@ public:
std::database::AirlinesDBRecord airline_record = {};
GeoMapView* geomap_view { nullptr };
private:
AircraftRecentEntry entry_copy { 0 };
std::function<void(void)> on_close_ { };