fix aircraft not being cleared off the map
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user