Skip to content

Commit c16f0cd

Browse files
Mark JessopMark Jessop
authored andcommitted
Merge branch 'testing' of github.com:projecthorus/sondehub-tracker into testing
2 parents 9bb8fa4 + ffe062b commit c16f0cd

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

js/tracker.js

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4831,23 +4831,11 @@ function updatePredictions(r) {
48314831
if(vcallsign == "XX") continue;
48324832

48334833
if(vehicles.hasOwnProperty(vcallsign)) {
4834-
var vehicle = vehicles[vcallsign];
4835-
4836-
if(vehicle.marker.mode == "landed") {
4837-
removePrediction(vcallsign);
4838-
continue;
4839-
}
4840-
4841-
if(vehicle.prediction && vehicle.prediction.time == r[i].time) {
4842-
continue;
4843-
}
4844-
vehicle.prediction = r[i];
4845-
if(parseInt(vehicle.prediction.landed) === 0) {
4846-
vehicle.prediction.data = $.parseJSON(r[i].data);
4847-
redrawPrediction(vcallsign);
4848-
} else {
4849-
removePrediction(vcallsign);
4850-
}
4834+
var vehicle = vehicles[vcallsign];
4835+
if(vehicle.prediction && vehicle.prediction.time == r[i].time) continue;
4836+
vehicle.prediction = r[i];
4837+
vehicle.prediction.data = $.parseJSON(r[i].data);
4838+
redrawPrediction(vcallsign);
48514839
}
48524840
}
48534841
}

0 commit comments

Comments
 (0)