don't delete old positions, it just creates a mess

This commit is contained in:
Matthias Wirth
2019-08-05 12:32:28 +02:00
parent c76edfec7e
commit d5e43b643f
2 changed files with 24 additions and 18 deletions

View File

@@ -569,8 +569,12 @@ function parse_history() {
// Final pass to update all planes to their latest state
console.log("Final history cleanup pass");
for (var i = 0; i < PlanesOrdered.length; ++i) {
for (var i in PlanesOrdered) {
var plane = PlanesOrdered[i];
if (plane.position && SitePosition)
plane.sitedist = ol.sphere.getDistance(SitePosition, plane.position);
if (plane.dataSource == "uat")
plane.updateTick(uat_now, uat_last, true);
else