From dc2af3d243cc0ae7fb1fa04110c4c8a4aa30a42a Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Tue, 26 Jul 2022 13:40:26 +0200 Subject: [PATCH] fix aircraft not being cleared off the map --- html/planeObject.js | 2 +- html/script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/planeObject.js b/html/planeObject.js index 555e8bd..d753c95 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -2715,7 +2715,7 @@ PlaneObject.prototype.checkVisible = function() { return (!globeIndex || this.inView || this.selected || SelectedAllPlanes) && ( - (!globeIndex && this.seen < (58 - tisbReduction + jaeroTime + refreshInt())) + (!globeIndex && this.seen < (58 - tisbReduction + jaeroTime + refreshInt() / 1000)) || (globeIndex && this.seen_pos < (40 + jaeroTime + mlatTime + modeSTime - tisbReduction + refreshInt()) && now - this.last_info_server < noInfoTimeout) || this.selected || noVanish diff --git a/html/script.js b/html/script.js index 2dfe180..4867bfc 100644 --- a/html/script.js +++ b/html/script.js @@ -5226,8 +5226,8 @@ function mapRefresh(redraw) { } else { for (let i in g.planesOrdered) { const plane = g.planesOrdered[i]; - addToMap.push(plane); delete plane.glMarker; + addToMap.push(plane); } }