Skip to content

Commit

Permalink
SkyView: Fix trail color for planes that are now on ground
Browse files Browse the repository at this point in the history
When determining the color for a given altitude, don't check the current
altitude if it's ground but the altitude passed as an argument to the
function.
Without this fix, when clicking an aircraft on ground, its entire trail
is drawn in the color for ground.
  • Loading branch information
wiedehopf committed Jul 30, 2019
1 parent 76ab0a7 commit f1cb09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public_html/planeObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ PlaneObject.prototype.getAltitudeColor = function(altitude) {
h = ColorByAlt.unknown.h;
s = ColorByAlt.unknown.s;
l = ColorByAlt.unknown.l;
} else if (this.altitude === "ground") {
} else if (altitude === "ground") {
h = ColorByAlt.ground.h;
s = ColorByAlt.ground.s;
l = ColorByAlt.ground.l;
Expand Down

0 comments on commit f1cb09d

Please sign in to comment.