File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments